Skip to contentSkip to conversation

rauc: select host-squashfs as a host dependency

PATCH New Andrey Yurovsky 2 participants 4 messages Nov 28, 2017 – Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rauc: select host-squashfs as a host dependency

The rauc host tool (used to generate update bundles) runs mksquashfs so host-squashfs is required for it to work at runtime.

---
 package/rauc/Config.in.host | 1 +
 package/rauc/rauc.mk        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/rauc/Config.in.host +1 -0
index a58685a2e6..1bd9a7935a 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_HOST_RAUC
 	bool "host rauc"
+	select BR2_PACKAGE_HOST_SQUASHFS # run-time dependency
 	help
 	  RAUC is the Robust Auto-Update Controller developed by
 	  Pengutronix. Enable this option to build the rauc
package/rauc/rauc.mk +1 -1
index 479a583206..67ef1556e7 100644
@@ -29,7 +29,7 @@ ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 RAUC_DEPENDENCIES += systemd
 endif
 
-HOST_RAUC_DEPENDENCIES = host-pkgconf host-openssl host-libglib2
+HOST_RAUC_DEPENDENCIES = host-pkgconf host-openssl host-libglib2 host-squashfs
 HOST_RAUC_CONF_OPTS += --disable-network --disable-json --disable-service
 
 $(eval $(autotools-package))
Signature · 1 line
2.14.3
#1 lore raw

PATCH 2/2 rauc: bump to version 0.2

Version 0.2 of rauc provides several bug fixes and minor feature enhancements.

---
 package/rauc/rauc.hash | 4 ++--
 package/rauc/rauc.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/rauc/rauc.hash +2 -2
index 78c3e279d6..649d19571e 100644
@@ -1,3 +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
+# https://github.com/rauc/rauc/releases/download/v0.2/rauc-0.2.tar.xz.asc
+sha256 83aa3ac3716e1c29315162e3cbf5d4db79f26dd95efe1bc634bbce364b95491a rauc-0.2.tar.xz
package/rauc/rauc.mk +1 -1
index 67ef1556e7..4909062cf5 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-RAUC_VERSION = 0.1.1
+RAUC_VERSION = 0.2
 RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION)
 RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz
 RAUC_LICENSE = LGPL-2.1
Signature · 1 line
2.14.3
#2 lore raw

PATCH 2/2 rauc: bump to version 0.2

Hello,

Quoted 8 lines · Andrey Yurovsky

Version 0.2 of rauc provides several bug fixes and minor feature enhancements.

---
 package/rauc/rauc.hash | 4 ++--
 package/rauc/rauc.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 rauc: select host-squashfs as a host dependency

In reply to Andrey Yurovsky

Hello,

Quoted 8 lines · Andrey Yurovsky

The rauc host tool (used to generate update bundles) runs mksquashfs so host-squashfs is required for it to work at runtime.

---
 package/rauc/Config.in.host | 1 +
 package/rauc/rauc.mk        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

I've applied to master. Note however that it in fact doesn't really solve the problem entirely, because $(HOST_DIR)/bin is not in the PATH, so rauc still doesn't find mksquashfs:

$ ./output/host/bin/rauc --cert demo.cert.pem --key demo.key.pem bundle output/images/t/ test.raucb
input directory: output/images/t/
output bundle: test.raucb

(rauc:17776): rauc-WARNING **: failed to create bundle: Failed to start mksquashfs: Failed to execute child process ?mksquashfs? (No such file or directory)

But mksquashfs is in output/host/bin. Perhaps rauc should also try to find mksquashfs from the same directory as rauc, before trying a system-wide installed one?

Or we expect people to run "rauc bundle" from a post-image script, in which case $(HOST_DIR)/bin is in the PATH ?

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com