diff options
author | Florian Bäuerle <florian.baeuerle@allegion.com> | 2018-09-26 16:56:00 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-09-27 10:28:57 +0200 |
commit | ebdf39487964d78ed42b25bc484d635e8646082b (patch) | |
tree | baa4c343244012ceafece0c5207cf33caf54b9e9 | |
parent | dcd51a2584e8eee81953969e34b87393f4922665 (diff) | |
download | ptxdist-ebdf39487964d78ed42b25bc484d635e8646082b.tar.gz ptxdist-ebdf39487964d78ed42b25bc484d635e8646082b.tar.xz |
rauc: make installation of system configuration optional
This allows for installation of the rauc system configuration via an
extra package, which is useful in scenarios involving image packages.
Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/rauc.in | 11 | ||||
-rw-r--r-- | rules/rauc.make | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/rules/rauc.in b/rules/rauc.in index b2fea4bf6..190eb0b51 100644 --- a/rules/rauc.in +++ b/rules/rauc.in @@ -22,6 +22,15 @@ config RAUC_JSON bool prompt "JSON support" +config RAUC_CONFIGURATION + prompt "Install RAUC configuration in /etc/rauc" + bool + default y + help + Install a default RAUC configuration that works for most projects. + +if RAUC_CONFIGURATION + config RAUC_COMPATIBLE prompt "RAUC Compatible" string @@ -41,3 +50,5 @@ config RAUC_BUNDLE_VERSION Overwrite the bundle version if needed. endif + +endif diff --git a/rules/rauc.make b/rules/rauc.make index b45e1f705..6fd3df2ad 100644 --- a/rules/rauc.make +++ b/rules/rauc.make @@ -62,11 +62,14 @@ $(STATEDIR)/rauc.targetinstall: @$(call install_fixup, rauc,DESCRIPTION,missing) @$(call install_copy, rauc, 0, 0, 0755, -, /usr/bin/rauc) + +ifdef PTXCONFIG_RAUC_CONFIGURATION @$(call install_alternative, rauc, 0, 0, 0644, /etc/rauc/system.conf) @$(call install_replace, rauc, /etc/rauc/system.conf, \ @RAUC_BUNDLE_COMPATIBLE@, \ $(PTXCONF_RAUC_COMPATIBLE)) @$(call install_alternative, rauc, 0, 0, 0644, /etc/rauc/ca.cert.pem) +endif @$(call install_copy, rauc, 0, 0, 0644, -, \ /usr/share/dbus-1/system-services/de.pengutronix.rauc.service) |