buildroot.busybox.net archive mirror
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/swugenerator: new package
@ 2023-03-13 22:17 Giulio Benetti
  2023-03-14  7:59 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 10+ messages in thread
From: Giulio Benetti @ 2023-03-13 22:17 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Thomas Petazzoni

Add swugenerator as host utility to generate images for swupdate with all
the possible options available like encryption, passkey etc. Let's also
add Giulio Benetti as package maintainer to DEVELOPERS file.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 DEVELOPERS                             |  1 +
 package/Config.in.host                 |  1 +
 package/swugenerator/Config.in.host    |  6 ++++++
 package/swugenerator/swugenerator.hash |  4 ++++
 package/swugenerator/swugenerator.mk   | 13 +++++++++++++
 5 files changed, 25 insertions(+)
 create mode 100644 package/swugenerator/Config.in.host
 create mode 100644 package/swugenerator/swugenerator.hash
 create mode 100644 package/swugenerator/swugenerator.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index b49491da7a..3228f2b709 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1182,6 +1182,7 @@ F:	package/rtl8821cu/
 F:	package/sunxi-mali-utgard/
 F:	package/sunxi-mali-utgard-driver/
 F:	package/sunxi-tools/
+F:	package/swugenerator/
 F:	package/trace-cmd/
 F:	package/udisks/
 F:	package/wilc-driver/
diff --git a/package/Config.in.host b/package/Config.in.host
index dcadbfdfc1..e47b7b5de9 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -100,6 +100,7 @@ menu "Host utilities"
 	source "package/squashfs/Config.in.host"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/swig/Config.in.host"
+	source "package/swugenerator/Config.in.host"
 	source "package/systemd/Config.in.host"
 	source "package/tegrarcm/Config.in.host"
 	source "package/ti-cgt-pru/Config.in.host"
diff --git a/package/swugenerator/Config.in.host b/package/swugenerator/Config.in.host
new file mode 100644
index 0000000000..df0e9a5170
--- /dev/null
+++ b/package/swugenerator/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_SWUGENERATOR
+	bool "host swugenerator"
+	help
+	  A host tool to generate SWU update package for SWUpdate.
+
+	  https://github.com/sbabic/swugenerator
diff --git a/package/swugenerator/swugenerator.hash b/package/swugenerator/swugenerator.hash
new file mode 100644
index 0000000000..2125be3d1c
--- /dev/null
+++ b/package/swugenerator/swugenerator.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  b5c47c47be0df4df476d2bf596f58a7296a4b0cebe6c8de42251605475b37d25  swugenerator-0.2.tar.gz
+# Locally computed sha256 checksums
+sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  LICENSE
diff --git a/package/swugenerator/swugenerator.mk b/package/swugenerator/swugenerator.mk
new file mode 100644
index 0000000000..506465f42d
--- /dev/null
+++ b/package/swugenerator/swugenerator.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# swugenerator
+#
+################################################################################
+
+SWUGENERATOR_VERSION = 0.2
+SWUGENERATOR_SITE = https://github.com/sbabic/swugenerator/archive/refs/tags/v$(SWUGENERATOR_VERSION)
+SWUGENERATOR_LICENSE = GPL-3.0
+SWUGENERATOR_LICENSE_FILES = LICENSE
+HOST_SWUGENERATOR_SETUP_TYPE = setuptools
+
+$(eval $(host-python-package))
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH] package/swugenerator: new package
  2023-03-13 22:17 [Buildroot] [PATCH] package/swugenerator: new package Giulio Benetti
@ 2023-03-14  7:59 ` Thomas Petazzoni via buildroot
  2023-03-14 12:30   ` [Buildroot] [PATCH v2] " Giulio Benetti
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-14  7:59 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

Hello Giulio,

Thanks for this new package.

On Mon, 13 Mar 2023 23:17:05 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> +SWUGENERATOR_VERSION = 0.2
> +SWUGENERATOR_SITE = https://github.com/sbabic/swugenerator/archive/refs/tags/v$(SWUGENERATOR_VERSION)

Could you please use the $(call github,...,...,...) macro here?

> +SWUGENERATOR_LICENSE = GPL-3.0
> +SWUGENERATOR_LICENSE_FILES = LICENSE
> +HOST_SWUGENERATOR_SETUP_TYPE = setuptools
> +
> +$(eval $(host-python-package))

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] 10+ messages in thread

* [Buildroot] [PATCH v2] package/swugenerator: new package
  2023-03-14  7:59 ` Thomas Petazzoni via buildroot
@ 2023-03-14 12:30   ` Giulio Benetti
  2023-03-14 22:37     ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 10+ messages in thread
From: Giulio Benetti @ 2023-03-14 12:30 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Thomas Petazzoni

Add swugenerator as host utility to generate images for swupdate with all
the possible options available like encryption, passkey etc. Let's also
add Giulio Benetti as package maintainer to DEVELOPERS file.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
V1->V2:
* use github macro for package _SITE as pointed by Thomas Petazzoni
---
 DEVELOPERS                             |  1 +
 package/Config.in.host                 |  1 +
 package/swugenerator/Config.in.host    |  6 ++++++
 package/swugenerator/swugenerator.hash |  4 ++++
 package/swugenerator/swugenerator.mk   | 13 +++++++++++++
 5 files changed, 25 insertions(+)
 create mode 100644 package/swugenerator/Config.in.host
 create mode 100644 package/swugenerator/swugenerator.hash
 create mode 100644 package/swugenerator/swugenerator.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index b49491da7a..3228f2b709 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1182,6 +1182,7 @@ F:	package/rtl8821cu/
 F:	package/sunxi-mali-utgard/
 F:	package/sunxi-mali-utgard-driver/
 F:	package/sunxi-tools/
+F:	package/swugenerator/
 F:	package/trace-cmd/
 F:	package/udisks/
 F:	package/wilc-driver/
diff --git a/package/Config.in.host b/package/Config.in.host
index dcadbfdfc1..e47b7b5de9 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -100,6 +100,7 @@ menu "Host utilities"
 	source "package/squashfs/Config.in.host"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/swig/Config.in.host"
+	source "package/swugenerator/Config.in.host"
 	source "package/systemd/Config.in.host"
 	source "package/tegrarcm/Config.in.host"
 	source "package/ti-cgt-pru/Config.in.host"
diff --git a/package/swugenerator/Config.in.host b/package/swugenerator/Config.in.host
new file mode 100644
index 0000000000..df0e9a5170
--- /dev/null
+++ b/package/swugenerator/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_SWUGENERATOR
+	bool "host swugenerator"
+	help
+	  A host tool to generate SWU update package for SWUpdate.
+
+	  https://github.com/sbabic/swugenerator
diff --git a/package/swugenerator/swugenerator.hash b/package/swugenerator/swugenerator.hash
new file mode 100644
index 0000000000..2125be3d1c
--- /dev/null
+++ b/package/swugenerator/swugenerator.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  b5c47c47be0df4df476d2bf596f58a7296a4b0cebe6c8de42251605475b37d25  swugenerator-0.2.tar.gz
+# Locally computed sha256 checksums
+sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  LICENSE
diff --git a/package/swugenerator/swugenerator.mk b/package/swugenerator/swugenerator.mk
new file mode 100644
index 0000000000..db43b18af6
--- /dev/null
+++ b/package/swugenerator/swugenerator.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# swugenerator
+#
+################################################################################
+
+SWUGENERATOR_VERSION = 0.2
+SWUGENERATOR_SITE = $(call github,sbabic,swugenerator,v$(SWUGENERATOR_VERSION))
+SWUGENERATOR_LICENSE = GPL-3.0
+SWUGENERATOR_LICENSE_FILES = LICENSE
+HOST_SWUGENERATOR_SETUP_TYPE = setuptools
+
+$(eval $(host-python-package))
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH v2] package/swugenerator: new package
  2023-03-14 12:30   ` [Buildroot] [PATCH v2] " Giulio Benetti
@ 2023-03-14 22:37     ` Thomas Petazzoni via buildroot
  2023-03-15  9:40       ` Giulio Benetti
  2023-03-15 10:08       ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Giulio Benetti
  0 siblings, 2 replies; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-14 22:37 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: buildroot

Hello Giulio,

On Tue, 14 Mar 2023 13:30:30 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> Add swugenerator as host utility to generate images for swupdate with all
> the possible options available like encryption, passkey etc. Let's also
> add Giulio Benetti as package maintainer to DEVELOPERS file.
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

I was about to apply... but realized that both setup.py and
requirements.txt indicate that the libconf Python module was needed as
a dependency, and we have no package for it in Buildroot, and therefore
it's not selected as a runtime dependency of host-swugenerator.

Could you double check this perhaps, and make sure host-swugenerator
works with the python installed as $(HOST_DIR)/bin/python3 ?

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] 10+ messages in thread

* Re: [Buildroot] [PATCH v2] package/swugenerator: new package
  2023-03-14 22:37     ` Thomas Petazzoni via buildroot
@ 2023-03-15  9:40       ` Giulio Benetti
  2023-03-15 10:08       ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Giulio Benetti
  1 sibling, 0 replies; 10+ messages in thread
From: Giulio Benetti @ 2023-03-15  9:40 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: buildroot

Hello Thomas,

On 14/03/23 23:37, Thomas Petazzoni via buildroot wrote:
> Hello Giulio,
> 
> On Tue, 14 Mar 2023 13:30:30 +0100
> Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
> 
>> Add swugenerator as host utility to generate images for swupdate with all
>> the possible options available like encryption, passkey etc. Let's also
>> add Giulio Benetti as package maintainer to DEVELOPERS file.
>>
>> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> 
> I was about to apply... but realized that both setup.py and
> requirements.txt indicate that the libconf Python module was needed as
> a dependency, and we have no package for it in Buildroot, and therefore
> it's not selected as a runtime dependency of host-swugenerator.
> 
> Could you double check this perhaps, and make sure host-swugenerator
> works with the python installed as $(HOST_DIR)/bin/python3 ?

You are right, I'm not very used to python. So yes it fails on runtime
on a machine where I don't have libconf installed and it's required.
So I'm going to provide a patch for adding host-python-libconf package
too and make swugenerator depend on it.

Thank you!
Best regards
-- 
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH v2 1/2] package/python-libconf: new package
  2023-03-14 22:37     ` Thomas Petazzoni via buildroot
  2023-03-15  9:40       ` Giulio Benetti
@ 2023-03-15 10:08       ` Giulio Benetti
  2023-03-15 10:08         ` [Buildroot] [PATCH v2 2/2] package/swugenerator: " Giulio Benetti
  2023-07-30 21:53         ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Thomas Petazzoni via buildroot
  1 sibling, 2 replies; 10+ messages in thread
From: Giulio Benetti @ 2023-03-15 10:08 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Asaf Kahlon, Thomas Petazzoni

python-libconf is a pure-Python reader/writer for configuration files in
libconfig format, which is often used in C/C++ projects.

https://github.com/ChrisAichinger/python-libconf

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
V1->V2:
* add python-libconf package since it's required by swugenerator as
  pointed by Thomas Petazzoni
---
 DEVELOPERS                                 |  1 +
 package/Config.in.host                     |  1 +
 package/python-libconf/Config.in.host      |  7 +++++++
 package/python-libconf/python-libconf.hash |  4 ++++
 package/python-libconf/python-libconf.mk   | 13 +++++++++++++
 5 files changed, 26 insertions(+)
 create mode 100644 package/python-libconf/Config.in.host
 create mode 100644 package/python-libconf/python-libconf.hash
 create mode 100644 package/python-libconf/python-libconf.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index b6d288c54f..8ddffbf428 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1171,6 +1171,7 @@ F:	package/mali-driver/
 F:	package/minicom/
 F:	package/mmc-utils/
 F:	package/nfs-utils/
+F:	package/python-libconf/
 F:	package/python-uvloop/
 F:	package/qt5/
 F:	package/rockchip-mali/
diff --git a/package/Config.in.host b/package/Config.in.host
index dcadbfdfc1..edfe7ce4b3 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -80,6 +80,7 @@ menu "Host utilities"
 	source "package/python-greenlet/Config.in.host"
 	source "package/python-iniparse/Config.in.host"
 	source "package/python-kflash/Config.in.host"
+	source "package/python-libconf/Config.in.host"
 	source "package/python-lxml/Config.in.host"
 	source "package/python-pyyaml/Config.in.host"
 	source "package/python-six/Config.in.host"
diff --git a/package/python-libconf/Config.in.host b/package/python-libconf/Config.in.host
new file mode 100644
index 0000000000..65e8d3a241
--- /dev/null
+++ b/package/python-libconf/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_PYTHON_LIBCONF
+	bool "host python-libconf"
+	help
+	  libconf is a pure-Python reader/writer for configuration files
+	  in libconfig format, which is often used in C/C++ projects.
+
+	  https://github.com/ChrisAichinger/python-libconf/
\ No newline at end of file
diff --git a/package/python-libconf/python-libconf.hash b/package/python-libconf/python-libconf.hash
new file mode 100644
index 0000000000..d05efd37fd
--- /dev/null
+++ b/package/python-libconf/python-libconf.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  66897870fcafce05624eafcc99e2dc8e150124e91019d9c29cc4f3bef64311dd  python-libconf-2.0.1.tar.gz
+# Locally computed sha256 checksums
+sha256  3c2afc8c9f7a12032f225e6fa870e85af14d1b71236afe28d94a4b67e5e8c873  LICENSE
diff --git a/package/python-libconf/python-libconf.mk b/package/python-libconf/python-libconf.mk
new file mode 100644
index 0000000000..b349e3e60e
--- /dev/null
+++ b/package/python-libconf/python-libconf.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-libconf
+#
+################################################################################
+
+PYTHON_LIBCONF_VERSION = 2.0.1
+PYTHON_LIBCONF_SITE = $(call github,ChrisAichinger,python-libconf,$(PYTHON_LIBCONF_VERSION))
+PYTHON_LIBCONF_SETUP_TYPE = setuptools
+PYTHON_LIBCONF_LICENSE = MIT
+PYTHON_LIBCONF_LICENSE_FILES = LICENSE
+
+$(eval $(host-python-package))
-- 
2.34.1

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

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

* [Buildroot] [PATCH v2 2/2] package/swugenerator: new package
  2023-03-15 10:08       ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Giulio Benetti
@ 2023-03-15 10:08         ` Giulio Benetti
  2023-03-15 10:13           ` Giulio Benetti
  2023-07-30 21:53           ` Thomas Petazzoni via buildroot
  2023-07-30 21:53         ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Thomas Petazzoni via buildroot
  1 sibling, 2 replies; 10+ messages in thread
From: Giulio Benetti @ 2023-03-15 10:08 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Asaf Kahlon, Thomas Petazzoni

Add swugenerator as host utility to generate images for swupdate with all
the possible options available like encryption, passkey etc. Let's also
add Giulio Benetti as package maintainer to DEVELOPERS file.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
V1->V2:
* add host dependency to python-libconf
---
 DEVELOPERS                             |  1 +
 package/Config.in.host                 |  1 +
 package/swugenerator/Config.in.host    |  6 ++++++
 package/swugenerator/swugenerator.hash |  4 ++++
 package/swugenerator/swugenerator.mk   | 14 ++++++++++++++
 5 files changed, 26 insertions(+)
 create mode 100644 package/swugenerator/Config.in.host
 create mode 100644 package/swugenerator/swugenerator.hash
 create mode 100644 package/swugenerator/swugenerator.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 8ddffbf428..453fbf4b0f 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1186,6 +1186,7 @@ F:	package/rtl8821cu/
 F:	package/sunxi-mali-utgard/
 F:	package/sunxi-mali-utgard-driver/
 F:	package/sunxi-tools/
+F:	package/swugenerator/
 F:	package/trace-cmd/
 F:	package/udisks/
 F:	package/wilc-driver/
diff --git a/package/Config.in.host b/package/Config.in.host
index edfe7ce4b3..7059d78eb8 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -101,6 +101,7 @@ menu "Host utilities"
 	source "package/squashfs/Config.in.host"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/swig/Config.in.host"
+	source "package/swugenerator/Config.in.host"
 	source "package/systemd/Config.in.host"
 	source "package/tegrarcm/Config.in.host"
 	source "package/ti-cgt-pru/Config.in.host"
diff --git a/package/swugenerator/Config.in.host b/package/swugenerator/Config.in.host
new file mode 100644
index 0000000000..df0e9a5170
--- /dev/null
+++ b/package/swugenerator/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_SWUGENERATOR
+	bool "host swugenerator"
+	help
+	  A host tool to generate SWU update package for SWUpdate.
+
+	  https://github.com/sbabic/swugenerator
diff --git a/package/swugenerator/swugenerator.hash b/package/swugenerator/swugenerator.hash
new file mode 100644
index 0000000000..2125be3d1c
--- /dev/null
+++ b/package/swugenerator/swugenerator.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  b5c47c47be0df4df476d2bf596f58a7296a4b0cebe6c8de42251605475b37d25  swugenerator-0.2.tar.gz
+# Locally computed sha256 checksums
+sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  LICENSE
diff --git a/package/swugenerator/swugenerator.mk b/package/swugenerator/swugenerator.mk
new file mode 100644
index 0000000000..f4ead1d229
--- /dev/null
+++ b/package/swugenerator/swugenerator.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# swugenerator
+#
+################################################################################
+
+SWUGENERATOR_VERSION = 0.2
+SWUGENERATOR_SITE = $(call github,sbabic,swugenerator,v$(SWUGENERATOR_VERSION))
+SWUGENERATOR_LICENSE = GPL-3.0
+SWUGENERATOR_LICENSE_FILES = LICENSE
+HOST_SWUGENERATOR_SETUP_TYPE = setuptools
+HOST_SWUGENERATOR_DEPENDENCIES = host-python-libconf
+
+$(eval $(host-python-package))
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH v2 2/2] package/swugenerator: new package
  2023-03-15 10:08         ` [Buildroot] [PATCH v2 2/2] package/swugenerator: " Giulio Benetti
@ 2023-03-15 10:13           ` Giulio Benetti
  2023-07-30 21:53           ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 10+ messages in thread
From: Giulio Benetti @ 2023-03-15 10:13 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni, Asaf Kahlon

This is V3... Sorry!

On 15/03/23 11:08, Giulio Benetti wrote:
> Add swugenerator as host utility to generate images for swupdate with all
> the possible options available like encryption, passkey etc. Let's also
> add Giulio Benetti as package maintainer to DEVELOPERS file.
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> V1->V2:
* use github macro for package _SITE as pointed by Thomas Petazzoni
V2->V3:
> * add host dependency to python-libconf

Sorry again for the noise
Best regards
-- 
Giulio Benetti
Benetti Engineering sas

> ---
>   DEVELOPERS                             |  1 +
>   package/Config.in.host                 |  1 +
>   package/swugenerator/Config.in.host    |  6 ++++++
>   package/swugenerator/swugenerator.hash |  4 ++++
>   package/swugenerator/swugenerator.mk   | 14 ++++++++++++++
>   5 files changed, 26 insertions(+)
>   create mode 100644 package/swugenerator/Config.in.host
>   create mode 100644 package/swugenerator/swugenerator.hash
>   create mode 100644 package/swugenerator/swugenerator.mk
> 
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 8ddffbf428..453fbf4b0f 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1186,6 +1186,7 @@ F:	package/rtl8821cu/
>   F:	package/sunxi-mali-utgard/
>   F:	package/sunxi-mali-utgard-driver/
>   F:	package/sunxi-tools/
> +F:	package/swugenerator/
>   F:	package/trace-cmd/
>   F:	package/udisks/
>   F:	package/wilc-driver/
> diff --git a/package/Config.in.host b/package/Config.in.host
> index edfe7ce4b3..7059d78eb8 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -101,6 +101,7 @@ menu "Host utilities"
>   	source "package/squashfs/Config.in.host"
>   	source "package/sunxi-tools/Config.in.host"
>   	source "package/swig/Config.in.host"
> +	source "package/swugenerator/Config.in.host"
>   	source "package/systemd/Config.in.host"
>   	source "package/tegrarcm/Config.in.host"
>   	source "package/ti-cgt-pru/Config.in.host"
> diff --git a/package/swugenerator/Config.in.host b/package/swugenerator/Config.in.host
> new file mode 100644
> index 0000000000..df0e9a5170
> --- /dev/null
> +++ b/package/swugenerator/Config.in.host
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HOST_SWUGENERATOR
> +	bool "host swugenerator"
> +	help
> +	  A host tool to generate SWU update package for SWUpdate.
> +
> +	  https://github.com/sbabic/swugenerator
> diff --git a/package/swugenerator/swugenerator.hash b/package/swugenerator/swugenerator.hash
> new file mode 100644
> index 0000000000..2125be3d1c
> --- /dev/null
> +++ b/package/swugenerator/swugenerator.hash
> @@ -0,0 +1,4 @@
> +# Locally calculated
> +sha256  b5c47c47be0df4df476d2bf596f58a7296a4b0cebe6c8de42251605475b37d25  swugenerator-0.2.tar.gz
> +# Locally computed sha256 checksums
> +sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  LICENSE
> diff --git a/package/swugenerator/swugenerator.mk b/package/swugenerator/swugenerator.mk
> new file mode 100644
> index 0000000000..f4ead1d229
> --- /dev/null
> +++ b/package/swugenerator/swugenerator.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# swugenerator
> +#
> +################################################################################
> +
> +SWUGENERATOR_VERSION = 0.2
> +SWUGENERATOR_SITE = $(call github,sbabic,swugenerator,v$(SWUGENERATOR_VERSION))
> +SWUGENERATOR_LICENSE = GPL-3.0
> +SWUGENERATOR_LICENSE_FILES = LICENSE
> +HOST_SWUGENERATOR_SETUP_TYPE = setuptools
> +HOST_SWUGENERATOR_DEPENDENCIES = host-python-libconf
> +
> +$(eval $(host-python-package))

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

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

* Re: [Buildroot] [PATCH v2 1/2] package/python-libconf: new package
  2023-03-15 10:08       ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Giulio Benetti
  2023-03-15 10:08         ` [Buildroot] [PATCH v2 2/2] package/swugenerator: " Giulio Benetti
@ 2023-07-30 21:53         ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-30 21:53 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: Asaf Kahlon, buildroot

On Wed, 15 Mar 2023 11:08:47 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> python-libconf is a pure-Python reader/writer for configuration files in
> libconfig format, which is often used in C/C++ projects.
> 
> https://github.com/ChrisAichinger/python-libconf
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> V1->V2:
> * add python-libconf package since it's required by swugenerator as
>   pointed by Thomas Petazzoni
> ---
>  DEVELOPERS                                 |  1 +
>  package/Config.in.host                     |  1 +
>  package/python-libconf/Config.in.host      |  7 +++++++
>  package/python-libconf/python-libconf.hash |  4 ++++
>  package/python-libconf/python-libconf.mk   | 13 +++++++++++++
>  5 files changed, 26 insertions(+)
>  create mode 100644 package/python-libconf/Config.in.host
>  create mode 100644 package/python-libconf/python-libconf.hash
>  create mode 100644 package/python-libconf/python-libconf.mk

I've dropped the Config.in.host file and option, as we don't need it:
for now, this package is only needed as a build dependency for
host-swugenerator. Applied with this change. Thanks!

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

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

* Re: [Buildroot] [PATCH v2 2/2] package/swugenerator: new package
  2023-03-15 10:08         ` [Buildroot] [PATCH v2 2/2] package/swugenerator: " Giulio Benetti
  2023-03-15 10:13           ` Giulio Benetti
@ 2023-07-30 21:53           ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-30 21:53 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: Asaf Kahlon, buildroot

On Wed, 15 Mar 2023 11:08:48 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> Add swugenerator as host utility to generate images for swupdate with all
> the possible options available like encryption, passkey etc. Let's also
> add Giulio Benetti as package maintainer to DEVELOPERS file.
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> V1->V2:
> * add host dependency to python-libconf
> ---
>  DEVELOPERS                             |  1 +
>  package/Config.in.host                 |  1 +
>  package/swugenerator/Config.in.host    |  6 ++++++
>  package/swugenerator/swugenerator.hash |  4 ++++
>  package/swugenerator/swugenerator.mk   | 14 ++++++++++++++
>  5 files changed, 26 insertions(+)
>  create mode 100644 package/swugenerator/Config.in.host
>  create mode 100644 package/swugenerator/swugenerator.hash
>  create mode 100644 package/swugenerator/swugenerator.mk

Applied to master, thanks.

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

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

end of thread, other threads:[~2023-07-30 21:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 22:17 [Buildroot] [PATCH] package/swugenerator: new package Giulio Benetti
2023-03-14  7:59 ` Thomas Petazzoni via buildroot
2023-03-14 12:30   ` [Buildroot] [PATCH v2] " Giulio Benetti
2023-03-14 22:37     ` Thomas Petazzoni via buildroot
2023-03-15  9:40       ` Giulio Benetti
2023-03-15 10:08       ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " Giulio Benetti
2023-03-15 10:08         ` [Buildroot] [PATCH v2 2/2] package/swugenerator: " Giulio Benetti
2023-03-15 10:13           ` Giulio Benetti
2023-07-30 21:53           ` Thomas Petazzoni via buildroot
2023-07-30 21:53         ` [Buildroot] [PATCH v2 1/2] package/python-libconf: " 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;
as well as URLs for NNTP newsgroup(s).