* [ptxdist] [PATCH] rauc: make installation of system configuration optional
@ 2018-09-26 14:56 Florian Bäuerle
0 siblings, 0 replies; only message in thread
From: Florian Bäuerle @ 2018-09-26 14:56 UTC (permalink / raw)
To: ptxdist
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>
---
rules/rauc.in | 11 +++++++++++
rules/rauc.make | 3 +++
2 files changed, 14 insertions(+)
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)
--
2.19.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-26 14:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 14:56 [ptxdist] [PATCH] rauc: make installation of system configuration optional Florian Bäuerle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox