rauc: new package
PATCH 1/1 rauc: new package
RAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network (ex: HawkBit) or from a disk and provides a d-bus interface.
--- package/rauc/Config.in | 18 ++++++++++++++++++ package/rauc/rauc.hash | 2 ++ package/rauc/rauc.mk | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mk
package/rauc/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-glib -> glib2 + depends on BR2_USE_WCHAR # glib2 + depends on BR2_USE_MMU # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_DBUS_GLIB + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_JSON_GLIB + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT + help + RAUC controls the update process on embedded Linux systems. + See the documentation at + https://rauc.readthedocs.io/en/latest/ for more + information.
package/rauc/rauc.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 d867a81b9e414c8db9268851011fb2d404a3ee60ae297c007a2f140abfa607d1 rauc-v0.1.1.tar.gz
package/rauc/rauc.mk new file +19 -0
@@ -0,0 +1,19 @@ +################################################################################ +# +# rauc +# +################################################################################ + +RAUC_VERSION = v0.1.1 +RAUC_SITE = $(call github,rauc,rauc,$(RAUC_VERSION)) +RAUC_LICENSE = GPL-2.1 +RAUC_LICENSE_FILES = COPYING +RAUC_AUTORECONF = YES +RAUC_DEPENDENCIES = libcurl openssl libglib2 json-glib dbus-glib host-pkgconf \ + dbus util-linux + +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS = --disable-network --disable-json + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
2.9.4
PATCH 1/1 rauc: new package
Hi Andrey,
thanks for your contribution.
Quoted 9 lines · Andrey Yurovsky
RAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network (ex: HawkBit) or from a disk and provides a d-bus interface.
Signed-off-by Andrey Yurovsky <[email protected]>--- package/rauc/Config.in | 18 ++++++++++++++++++ package/rauc/rauc.hash | 2 ++ package/rauc/rauc.mk | 19 +++++++++++++++++++
An entry to the DEVELOPERS and package/Config.in files is missing.
Quoted 19 lines
3 files changed, 39 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mkpackage/rauc/Config.in new file +8
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-glib -> glib2 + depends on BR2_USE_WCHAR # glib2 + depends on BR2_USE_MMU # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_DBUS_GLIB
package/rauc/Config.in line 18
Quoted 10 lines
package/rauc/Config.in new file +10
-0+ select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_JSON_GLIB + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT + help + RAUC controls the update process on embedded Linux systems. + See the documentation at + https://rauc.readthedocs.io/en/latest/ for more + information.
Though you have depends statements you don't provide a corresponding message for the case where these dependencies are not met. See package/modem-manager/Config.in for example.
Quoted 20 lines
package/rauc/rauc.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated +sha256 d867a81b9e414c8db9268851011fb2d404a3ee60ae297c007a2f140abfa607d1 rauc-v0.1.1.tar.gzpackage/rauc/rauc.mk new file +6
-0@@ -0,0 +1,19 @@ +################################################################################ +# +# rauc +# +################################################################################ +
package/rauc/rauc.mk line 16
Quoted 10 lines
package/rauc/rauc.mk new file +10
-0+RAUC_VERSION = v0.1.1 +RAUC_SITE = $(call github,rauc,rauc,$(RAUC_VERSION)) +RAUC_LICENSE = GPL-2.1 +RAUC_LICENSE_FILES = COPYING +RAUC_AUTORECONF = YES +RAUC_DEPENDENCIES = libcurl openssl libglib2 json-glib dbus-glib host-pkgconf \ + dbus util-linux + +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS = --disable-network --disable-json
Could you elaborate more on why rauc requires a host variant?
Yegor
Quoted 9 lines
package/rauc/rauc.mk new file +2
-1+$(eval $(autotools-package)) +$(eval $(host-autotools-package)) --2.9.4
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH 1/1 rauc: new package
In reply to Andrey YurovskyHi Andrey,
Quoted 2 lines · Andrey Yurovsky
RAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network
^^^^^^^^^^^^^Pengutronix
Quoted 1 line
(ex: HawkBit) or from a disk and provides a d-bus interface.
So this is Pengutronix' competitor to swupdate?
Quoted 6 lines
Signed-off-by Andrey Yurovsky <[email protected]>--- package/rauc/Config.in | 18 ++++++++++++++++++ package/rauc/rauc.hash | 2 ++ package/rauc/rauc.mk | 19 +++++++++++++++++++
You don't add it to package/Config.in, so it is not possible to select this
package.
Have you checked the package with support/scripts/check-package ? Have you validated it with support/scripts/test-pkg ?
Quoted 19 lines
3 files changed, 39 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mkpackage/rauc/Config.in new file +8
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-glib -> glib2 + depends on BR2_USE_WCHAR # glib2 + depends on BR2_USE_MMU # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_DBUS_GLIB
package/rauc/Config.in line 18
Quoted 10 lines
package/rauc/Config.in new file +10
-0+ select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_JSON_GLIB + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT + help + RAUC controls the update process on embedded Linux systems. + See the documentation at + https://rauc.readthedocs.io/en/latest/ for more + information.
You can include the full text that you have in the commit log. Also, we need an
upstream URL. And with that added, the reference to the documentation is not really needed (it's one click away from the upstream URL). So:
RAUC is the Robust Auto-Update Controller developed by Pengutronix. It controls the update process on embedded Linux systems. It supports updating from the network or from a disk. It provides a D-Bus interface.
package/rauc/rauc.hash line 1
Quoted 7 lines
package/rauc/rauc.hash new file +1
-0@@ -0,0 +1,2 @@ +# Locally calculated
Please verify the tarball against the upstream signature, and write:
# Locally calculated, after verifying against
# https://github.com/rauc/rauc/releases/download/v0.1.1/rauc-0.1.1.tar.xz.asc
Quoted 7 lines
package/rauc/rauc.hash new file +1
-0+sha256 d867a81b9e414c8db9268851011fb2d404a3ee60ae297c007a2f140abfa607d1 rauc-v0.1.1.tar.gzpackage/rauc/rauc.mk new file +0
-0
package/rauc/rauc.mk line 8
Quoted 8 lines
package/rauc/rauc.mk new file +8
-0@@ -0,0 +1,19 @@ +################################################################################ +# +# rauc +# +################################################################################ + +RAUC_VERSION = v0.1.1 +RAUC_SITE = $(call github,rauc,rauc,$(RAUC_VERSION))
There is an upstream tarball, so you should use that:
RAUC_VERSION = 0.1.1RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION)RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz
package/rauc/rauc.mk line 9
Quoted 1 line
package/rauc/rauc.mk new file +1
-0+RAUC_LICENSE = GPL-2.1
GPL-2.1 doesn't exist, it's LGPL-2.1.
package/rauc/rauc.mk line 11
Quoted 2 lines
package/rauc/rauc.mk new file +2
-0+RAUC_LICENSE_FILES = COPYING +RAUC_AUTORECONF = YES
With the uploaded tarball this shouldn't be needed anymore.
package/rauc/rauc.mk line 13
Quoted 2 lines
package/rauc/rauc.mk new file +2
-0+RAUC_DEPENDENCIES = libcurl openssl libglib2 json-glib dbus-glib host-pkgconf \ + dbus util-linux
It seems that most of these are optional:
libcurl is only needed if --enable-network
json-glib is only needed if --enable-json
And configure.ac has no dependency at all on dbus-glib, dbus or libmount.
On the other hand, configure uses pkg-config to determine the systemd install
directories, so you should have a conditional dependency on this package:
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
# configure uses pkg-config --variable=systemdsystemunitdir systemd RAUC_DEPENDENCIES += systemd endif
Regards,
Arnout
Quoted 7 lines
package/rauc/rauc.mk new file +6
-0+ +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS = --disable-network --disable-json + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 rauc: new package
Hi Arnout,
Quoted 10 lines · Arnout Vandecappelle
Hi Andrey,
Quoted 2 lines · Andrey Yurovsky
RAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network
^^^^^^^^^^^^^Pengutronix
Quoted 1 line
(ex: HawkBit) or from a disk and provides a d-bus interface.
So this is Pengutronix' competitor to swupdate?
I believe so. I have no personal involvement in either one but rauc's approach is a little different and it may offer advantages for certain systems (for example its d-bus interface vs. a UNIX socket) and the firmware bundle/image format is different. They're roughly equivalent in the problem they're solving though.
Quoted 9 lines
Quoted 6 lines
Signed-off-by Andrey Yurovsky <[email protected]>--- package/rauc/Config.in | 18 ++++++++++++++++++ package/rauc/rauc.hash | 2 ++ package/rauc/rauc.mk | 19 +++++++++++++++++++You don't add it to package/Config.in, so it is not possible to select this
package.
That's right, I have no idea how I messed that up and it'll be addressed in v2.
Quoted 2 lines
Have you checked the package with support/scripts/check-package ? Have you validated it with support/scripts/test-pkg ?
I did run check-package but not test-pkg, I'll make sure both are run next time, again sorry about that.
Quoted 10 lines
You can include the full text that you have in the commit log. Also, we need an
upstream URL. And with that added, the reference to the documentation is not really needed (it's one click away from the upstream URL). So:RAUC is the Robust Auto-Update Controller developed by Pengutronix. It controls the update process on embedded Linux systems. It supports updating from the network or from a disk. It provides a D-Bus interface.
Understood. Will do.
Quoted 4 lines
Please verify the tarball against the upstream signature, and write:
# Locally calculated, after verifying against
# https://github.com/rauc/rauc/releases/download/v0.1.1/rauc-0.1.1.tar.xz.asc
Ok.
Quoted 1 line
There is an upstream tarball, so you should use that:
Ok, I was following another package, I'll use the tarball directly since indeed they have tarball releases.
Quoted 7 lines
RAUC_VERSION= 0.1.1RAUC_SITE= https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION)RAUC_SOURCE= rauc-$(RAUC_VERSION).tar.xzQuoted 1 line
+RAUC_LICENSE = GPL-2.1
GPL-2.1 doesn't exist, it's LGPL-2.1.
That's a very bad typo on my part, thanks for catching it.
Quoted 4 lines
package/rauc/rauc.mk line 11
Quoted 2 lines
package/rauc/rauc.mk new file +2
-0+RAUC_LICENSE_FILES = COPYING +RAUC_AUTORECONF = YESWith the uploaded tarball this shouldn't be needed anymore.
Understood.
Quoted 7 lines
package/rauc/rauc.mk line 13
Quoted 2 lines
package/rauc/rauc.mk new file +2
-0+RAUC_DEPENDENCIES = libcurl openssl libglib2 json-glib dbus-glib host-pkgconf \ + dbus util-linuxIt seems that most of these are optional:
libcurl is only needed if --enable-network
json-glib is only needed if --enable-json
I debated about this and thought users would generally want both features, I now see that in buildroot it's more common to make them optional so I'll add networking and JSON support as high-level options and make them conditional on that (I suppose someone may be building a non-networked device that still needs rauc to perform updates from a USB disk).
Quoted 1 line
And configure.ac has no dependency at all on dbus-glib, dbus or libmount.
You're right, I missed that they use the GIO dbus interface instead and indeed dbus-glib isn't needed. Is d-bus acceptable as a runtime dependency? That is, rauc won't be terribly useful if the target doesn't have d-bus at runtime.
Quoted 7 lines
On the other hand, configure uses pkg-config to determine the systemd install
directories, so you should have a conditional dependency on this package:ifeq ($(BR2_PACKAGE_SYSTEMD),y)
# configure uses pkg-config --variable=systemdsystemunitdir systemd RAUC_DEPENDENCIES += systemd endif
Will do, thanks again for all of the feedback.
PATCH v2 1/1 rauc: new package
In reply to Andrey YurovskyRAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network (ex: HawkBit) or from a disk and provides a d-bus interface.
--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/Config.in.host | 1 + package/rauc/Config.in | 37 +++++++++++++++++++++++++++++++++++++ package/rauc/Config.in.host | 9 +++++++++ package/rauc/rauc.hash | 3 +++ package/rauc/rauc.mk | 36 ++++++++++++++++++++++++++++++++++++ 7 files changed, 90 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/Config.in.host create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mk
DEVELOPERS +3 -0
@@ -95,6 +95,9 @@ F: package/python-scandir/ F: package/python-simplegeneric/ F: package/python-traitlets/ +N: Andrey Yurovsky <[email protected]> +F: package/rauc + N: Andy Kennedy <[email protected]> F: package/libunwind/
package/Config.in +1 -0
@@ -1865,6 +1865,7 @@ menu "System tools" source "package/psmisc/Config.in" source "package/pwgen/Config.in" source "package/quota/Config.in" + source "package/rauc/Config.in" source "package/rsyslog/Config.in" source "package/runc/Config.in" source "package/s6/Config.in"
package/Config.in.host +1 -0
@@ -39,6 +39,7 @@ menu "Host utilities" source "package/python-lxml/Config.in.host" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" + source "package/rauc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host" source "package/squashfs/Config.in.host"
package/rauc/Config.in new file +37 -0
@@ -0,0 +1,37 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_DBUS # run-time dependency + help + RAUC is the Robust Auto-Update Controller developed by + Penguintronix. It supports updating embedded Linux + systems over the network or from disks and provides a + d-bus interface. + + http://rauc.io/ + +if BR2_PACKAGE_RAUC + +config BR2_PACKAGE_RAUC_NETWORK + bool "network support" + select BR2_PACKAGE_LIBCURL + help + This option enables support for updating firmware over + the network using libcurl. + +config BR2_PACKAGE_RAUC_JSON + bool "JSON output support" + select BR2_PACKAGE_JSON_GLIB + help + This option enables support for providing output in + JSON format. + +endif + +comment "rauc needs a toolchain w/ wchar, threads" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU
package/rauc/Config.in.host new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_RAUC + bool "host rauc" + help + RAUC is the Robust Auto-Update Controller developed by + Penguintronix. Enable this option to build the rauc + host tool which may be used to generate firmware + bundles that are handled by the target rauc service. + + http://rauc.io/
package/rauc/rauc.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated, after verifying against +# https://github.com/rauc/rauc/releases/download/v0.1.1/rauc-0.1.1.tar.xz.asc +sha256 d2901d493f1d3210aef6411e83b02edac3a678d6d825d71a1c61b5b6afc7e478 rauc-0.1.1.tar.xz
package/rauc/rauc.mk new file +36 -0
@@ -0,0 +1,36 @@ +################################################################################ +# +# rauc +# +################################################################################ + +RAUC_VERSION = 0.1.1 +RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION) +RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz +RAUC_LICENSE = LGPL-2.1 +RAUC_DEPENDENCIES = host-pkgconf openssl libglib2 + +ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y) +RAUC_CONF_OPTS += --enable-network +RAUC_DEPENDENCIES += libcurl +else +RAUC_CONF_OPTS += --disable-network +endif + +ifeq ($(BR2_PACKAGE_RAUC_JSON),y) +RAUC_CONF_OPTS += --enable-json +RAUC_DEPENDENCIES += json-glib +else +RAUC_CONF_OPTS += --disable-json +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +# configure uses pkg-config --variable=systemdsystemunitdir systemd +RAUC_DEPENDENCIES += systemd +endif + +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS += --disable-network --disable-json --disable-service + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
2.9.4
PATCH v2 1/1 rauc: new package
Quoted 5 lines · Andrey Yurovsky
RAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network (ex: HawkBit) or from a disk and provides a d-bus interface.
Signed-off-by Andrey Yurovsky <[email protected]>
Quoted 164 lines
--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/Config.in.host | 1 + package/rauc/Config.in | 37 +++++++++++++++++++++++++++++++++++++ package/rauc/Config.in.host | 9 +++++++++ package/rauc/rauc.hash | 3 +++ package/rauc/rauc.mk | 36 ++++++++++++++++++++++++++++++++++++ 7 files changed, 90 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/Config.in.host create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mkDEVELOPERS +3
-0@@ -95,6 +95,9 @@ F: package/python-scandir/ F: package/python-simplegeneric/ F: package/python-traitlets/ +N: Andrey Yurovsky <[email protected]> +F: package/rauc + N: Andy Kennedy <[email protected]> F: package/libunwind/package/Config.in +1
-0@@ -1865,6 +1865,7 @@ menu "System tools" source "package/psmisc/Config.in" source "package/pwgen/Config.in" source "package/quota/Config.in" + source "package/rauc/Config.in" source "package/rsyslog/Config.in" source "package/runc/Config.in" source "package/s6/Config.in"package/Config.in.host +1
-0@@ -39,6 +39,7 @@ menu "Host utilities" source "package/python-lxml/Config.in.host" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" + source "package/rauc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host" source "package/squashfs/Config.in.host"package/rauc/Config.in new file +37
-0@@ -0,0 +1,37 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_DBUS # run-time dependency + help + RAUC is the Robust Auto-Update Controller developed by + Penguintronix. It supports updating embedded Linux + systems over the network or from disks and provides a + d-bus interface. + + http://rauc.io/ + +if BR2_PACKAGE_RAUC + +config BR2_PACKAGE_RAUC_NETWORK + bool "network support" + select BR2_PACKAGE_LIBCURL + help + This option enables support for updating firmware over + the network using libcurl. + +config BR2_PACKAGE_RAUC_JSON + bool "JSON output support" + select BR2_PACKAGE_JSON_GLIB + help + This option enables support for providing output in + JSON format. + +endif + +comment "rauc needs a toolchain w/ wchar, threads" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMUpackage/rauc/Config.in.host new file +9
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_RAUC + bool "host rauc" + help + RAUC is the Robust Auto-Update Controller developed by + Penguintronix. Enable this option to build the rauc + host tool which may be used to generate firmware + bundles that are handled by the target rauc service. + + http://rauc.io/package/rauc/rauc.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally calculated, after verifying against +# https://github.com/rauc/rauc/releases/download/v0.1.1/rauc-0.1.1.tar.xz.asc +sha256 d2901d493f1d3210aef6411e83b02edac3a678d6d825d71a1c61b5b6afc7e478 rauc-0.1.1.tar.xzpackage/rauc/rauc.mk new file +36
-1@@ -0,0 +1,36 @@ +################################################################################ +# +# rauc +# +################################################################################ + +RAUC_VERSION = 0.1.1 +RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION) +RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz +RAUC_LICENSE = LGPL-2.1 +RAUC_DEPENDENCIES = host-pkgconf openssl libglib2 + +ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y) +RAUC_CONF_OPTS += --enable-network +RAUC_DEPENDENCIES += libcurl +else +RAUC_CONF_OPTS += --disable-network +endif + +ifeq ($(BR2_PACKAGE_RAUC_JSON),y) +RAUC_CONF_OPTS += --enable-json +RAUC_DEPENDENCIES += json-glib +else +RAUC_CONF_OPTS += --disable-json +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +# configure uses pkg-config --variable=systemdsystemunitdir systemd +RAUC_DEPENDENCIES += systemd +endif + +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS += --disable-network --disable-json --disable-service + +$(eval $(autotools-package)) +$(eval $(host-autotools-package)) --2.9.4
PATCH v2 1/1 rauc: new package
In reply to Andrey YurovskyHello Andrey,
Quoted 2 lines · Andrey Yurovsky
RAUC is the Robust Auto-Update Controller developed by the folks at Penguintronix. It supports updating embedded systems from the network
Typo: s/Penguintronix/Pengutronix/ and some more occurrences below...
Regards,
Peter
Quoted 164 lines
(ex: HawkBit) or from a disk and provides a d-bus interface.
Signed-off-by Andrey Yurovsky <[email protected]>--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/Config.in.host | 1 + package/rauc/Config.in | 37 +++++++++++++++++++++++++++++++++++++ package/rauc/Config.in.host | 9 +++++++++ package/rauc/rauc.hash | 3 +++ package/rauc/rauc.mk | 36 ++++++++++++++++++++++++++++++++++++ 7 files changed, 90 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/Config.in.host create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mkDEVELOPERS +3
-0@@ -95,6 +95,9 @@ F: package/python-scandir/ F: package/python-simplegeneric/ F: package/python-traitlets/ +N: Andrey Yurovsky <[email protected]> +F: package/rauc + N: Andy Kennedy <[email protected]> F: package/libunwind/package/Config.in +1
-0@@ -1865,6 +1865,7 @@ menu "System tools" source "package/psmisc/Config.in" source "package/pwgen/Config.in" source "package/quota/Config.in" + source "package/rauc/Config.in" source "package/rsyslog/Config.in" source "package/runc/Config.in" source "package/s6/Config.in"package/Config.in.host +1
-0@@ -39,6 +39,7 @@ menu "Host utilities" source "package/python-lxml/Config.in.host" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" + source "package/rauc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host" source "package/squashfs/Config.in.host"package/rauc/Config.in new file +37
-0@@ -0,0 +1,37 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_DBUS # run-time dependency + help + RAUC is the Robust Auto-Update Controller developed by + Penguintronix. It supports updating embedded Linux + systems over the network or from disks and provides a + d-bus interface. + + http://rauc.io/ + +if BR2_PACKAGE_RAUC + +config BR2_PACKAGE_RAUC_NETWORK + bool "network support" + select BR2_PACKAGE_LIBCURL + help + This option enables support for updating firmware over + the network using libcurl. + +config BR2_PACKAGE_RAUC_JSON + bool "JSON output support" + select BR2_PACKAGE_JSON_GLIB + help + This option enables support for providing output in + JSON format. + +endif + +comment "rauc needs a toolchain w/ wchar, threads" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMUpackage/rauc/Config.in.host new file +9
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_RAUC + bool "host rauc" + help + RAUC is the Robust Auto-Update Controller developed by + Penguintronix. Enable this option to build the rauc + host tool which may be used to generate firmware + bundles that are handled by the target rauc service. + + http://rauc.io/package/rauc/rauc.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally calculated, after verifying against +# https://github.com/rauc/rauc/releases/download/v0.1.1/rauc-0.1.1.tar.xz.asc +sha256 d2901d493f1d3210aef6411e83b02edac3a678d6d825d71a1c61b5b6afc7e478 rauc-0.1.1.tar.xzpackage/rauc/rauc.mk new file +36
-0@@ -0,0 +1,36 @@ +################################################################################ +# +# rauc +# +################################################################################ + +RAUC_VERSION = 0.1.1 +RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION) +RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz +RAUC_LICENSE = LGPL-2.1 +RAUC_DEPENDENCIES = host-pkgconf openssl libglib2 + +ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y) +RAUC_CONF_OPTS += --enable-network +RAUC_DEPENDENCIES += libcurl +else +RAUC_CONF_OPTS += --disable-network +endif + +ifeq ($(BR2_PACKAGE_RAUC_JSON),y) +RAUC_CONF_OPTS += --enable-json +RAUC_DEPENDENCIES += json-glib +else +RAUC_CONF_OPTS += --disable-json +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +# configure uses pkg-config --variable=systemdsystemunitdir systemd +RAUC_DEPENDENCIES += systemd +endif + +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS += --disable-network --disable-json --disable-service + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))
PATCH v3 1/1 rauc: new package
RAUC is the Robust Auto-Update Controller developed by the folks at Pengutronix. It supports updating embedded systems from the network (ex: HawkBit) or from a disk and provides a d-bus interface.
--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/Config.in.host | 1 + package/rauc/Config.in | 37 +++++++++++++++++++++++++++++++++++++ package/rauc/Config.in.host | 9 +++++++++ package/rauc/rauc.hash | 3 +++ package/rauc/rauc.mk | 36 ++++++++++++++++++++++++++++++++++++ 7 files changed, 90 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/Config.in.host create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mk
DEVELOPERS +3 -0
@@ -95,6 +95,9 @@ F: package/python-scandir/ F: package/python-simplegeneric/ F: package/python-traitlets/ +N: Andrey Yurovsky <[email protected]> +F: package/rauc + N: Andy Kennedy <[email protected]> F: package/libunwind/
package/Config.in +1 -0
@@ -1865,6 +1865,7 @@ menu "System tools" source "package/psmisc/Config.in" source "package/pwgen/Config.in" source "package/quota/Config.in" + source "package/rauc/Config.in" source "package/rsyslog/Config.in" source "package/runc/Config.in" source "package/s6/Config.in"
package/Config.in.host +1 -0
@@ -39,6 +39,7 @@ menu "Host utilities" source "package/python-lxml/Config.in.host" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" + source "package/rauc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host" source "package/squashfs/Config.in.host"
package/rauc/Config.in new file +37 -0
@@ -0,0 +1,37 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_DBUS # run-time dependency + help + RAUC is the Robust Auto-Update Controller developed by + Pengutronix. It supports updating embedded Linux + systems over the network or from disks and provides a + d-bus interface. + + http://rauc.io/ + +if BR2_PACKAGE_RAUC + +config BR2_PACKAGE_RAUC_NETWORK + bool "network support" + select BR2_PACKAGE_LIBCURL + help + This option enables support for updating firmware over + the network using libcurl. + +config BR2_PACKAGE_RAUC_JSON + bool "JSON output support" + select BR2_PACKAGE_JSON_GLIB + help + This option enables support for providing output in + JSON format. + +endif + +comment "rauc needs a toolchain w/ wchar, threads" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU
package/rauc/Config.in.host new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_RAUC + bool "host rauc" + help + RAUC is the Robust Auto-Update Controller developed by + Pengutronix. Enable this option to build the rauc + host tool which may be used to generate firmware + bundles that are handled by the target rauc service. + + http://rauc.io/
package/rauc/rauc.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated, after verifying against +# https://github.com/rauc/rauc/releases/download/v0.1.1/rauc-0.1.1.tar.xz.asc +sha256 d2901d493f1d3210aef6411e83b02edac3a678d6d825d71a1c61b5b6afc7e478 rauc-0.1.1.tar.xz
package/rauc/rauc.mk new file +36 -0
@@ -0,0 +1,36 @@ +################################################################################ +# +# rauc +# +################################################################################ + +RAUC_VERSION = 0.1.1 +RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION) +RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz +RAUC_LICENSE = LGPL-2.1 +RAUC_DEPENDENCIES = host-pkgconf openssl libglib2 + +ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y) +RAUC_CONF_OPTS += --enable-network +RAUC_DEPENDENCIES += libcurl +else +RAUC_CONF_OPTS += --disable-network +endif + +ifeq ($(BR2_PACKAGE_RAUC_JSON),y) +RAUC_CONF_OPTS += --enable-json +RAUC_DEPENDENCIES += json-glib +else +RAUC_CONF_OPTS += --disable-json +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +# configure uses pkg-config --variable=systemdsystemunitdir systemd +RAUC_DEPENDENCIES += systemd +endif + +HOST_RAUC_DEPENDENCIES = host-pkgconf +HOST_RAUC_CONF_OPTS += --disable-network --disable-json --disable-service + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
2.9.4
PATCH v3 1/1 rauc: new package
Hi Andrey,
Thank you for the quick turnaround on this patch!
Quoted 7 lines · Andrey Yurovsky
RAUC is the Robust Auto-Update Controller developed by the folks at Pengutronix. It supports updating embedded systems from the network (ex: HawkBit) or from a disk and provides a d-bus interface.
Signed-off-by Andrey Yurovsky <[email protected]>Reviewed-by Yegor Yefremov <[email protected]>---
For future submissions: it is convenient to put a patch history in the commit
log. Put it below a --- line, which causes git-am to remove it when it is committed to the repository. So you could put here:
---
v2 -> v3:
- Correct spelling of Pengutronix (Peter)
v1 -> v2:
- Add myself to DEVELOPERS (Yegor)
- Add Config.in.host option (Yegor)
- Add inclusion in package/Config.in and package/Config.in.host (Arnout)
- Use uploaded tarball instead of automatic one (Arnout)
- Verified signature of tarball (Arnout)
- Fix license (LGPL-2.1 instead of GPL-2.1) (Arnout)
- Convert libcurl and json-glib to automatic dependencies (Arnout)
- Remove dbus-glib and util-linux(libmount) dependencies (Arnout)
- Mark dbus as a runtime dependency
[I reconstructed this history because I need it to be able to review the patch.]
Also, it's convenient to add the people who commented on the patch in Cc, to
motivate them to look at your new version.
Obviously, no need to spin a v4 for the above. I have a few small fixes still
below, but they can probably be done while applying, so:
Quoted 18 lines
DEVELOPERS | 3 +++ package/Config.in | 1 + package/Config.in.host | 1 + package/rauc/Config.in | 37 +++++++++++++++++++++++++++++++++++++ package/rauc/Config.in.host | 9 +++++++++ package/rauc/rauc.hash | 3 +++ package/rauc/rauc.mk | 36 ++++++++++++++++++++++++++++++++++++ 7 files changed, 90 insertions(+) create mode 100644 package/rauc/Config.in create mode 100644 package/rauc/Config.in.host create mode 100644 package/rauc/rauc.hash create mode 100644 package/rauc/rauc.mkDEVELOPERS +0
-0
DEVELOPERS F: package/python-scandir/ · line 99
Quoted 5 lines
DEVELOPERS +2
-0@@ -95,6 +95,9 @@ F: package/python-scandir/ F: package/python-simplegeneric/ F: package/python-traitlets/ +N: Andrey Yurovsky <[email protected]> +F: package/rauc
Although the DEVELOPERS syntax doesn't strictly require it, we normally put a /
at the end to make it clear it's a directory.
Quoted 4 lines
DEVELOPERS +1
-0+ N: Andy Kennedy <[email protected]> F: package/libunwind/
[snip]
Quoted 9 lines
package/rauc/Config.in new file +3
-0@@ -0,0 +1,37 @@ +config BR2_PACKAGE_RAUC + bool "rauc" + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
package/rauc/Config.in line 13
Quoted 10 lines
package/rauc/Config.in new file +10
-0+ depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_DBUS # run-time dependency + help + RAUC is the Robust Auto-Update Controller developed by + Pengutronix. It supports updating embedded Linux + systems over the network or from disks and provides a + d-bus interface.
Proper spelling is D-Bus or DBus.
Quoted 8 lines
package/rauc/Config.in new file +8
-0+ + http://rauc.io/ + +if BR2_PACKAGE_RAUC + +config BR2_PACKAGE_RAUC_NETWORK + bool "network support" + select BR2_PACKAGE_LIBCURL
package/rauc/Config.in line 31
Quoted 10 lines
package/rauc/Config.in new file +10
-0+ help + This option enables support for updating firmware over + the network using libcurl. + +config BR2_PACKAGE_RAUC_JSON + bool "JSON output support" + select BR2_PACKAGE_JSON_GLIB + help + This option enables support for providing output in + JSON format.
We don't usually add sub-options for the different package configuration
options. However, in this case it does indeed make sense:
- they are not really easy to discover for the user;
- it's unlikely that these options will change much in future versions.
Regards,
Arnout
Quoted 6 lines
package/rauc/Config.in new file +6
-0+ +endif + +comment "rauc needs a toolchain w/ wchar, threads" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU
[snip]
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH v3 1/1 rauc: new package
In reply to Andrey YurovskyHello,
DEVELOPERS F: package/python-scandir/ · line 99
Quoted 10 lines · Andrey Yurovsky
DEVELOPERS +2
-0@@ -95,6 +95,9 @@ F: package/python-scandir/ F: package/python-simplegeneric/ F: package/python-traitlets/ +N: Andrey Yurovsky <[email protected]> +F: package/rauc
In addition to what Arnout said, indentation was wrong here, we use a tab to separate the field name (N:, F:) from its contents.
The rest looked good to me, so I've applied your patch. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com