mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] rauc: Make rauc bundle version configurable
@ 2018-09-10 14:51 Gavin Schenk
  0 siblings, 0 replies; only message in thread
From: Gavin Schenk @ 2018-09-10 14:51 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

In my usecase I need PTXCONF_PROJECT_VERSION in the rauc bundle instead
of PTXDIST_BSP_AUTOVERSION that is hard coded in rules/image-rauc.make.

Introduce a new switch RAUC_BUNDLE_VERSION to menuconfig that defaults
to "${PTXDIST_BSP_AUTOVERSION}".

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---

changes from v1 -> v2:
move RAUC_BUNDLE_VERSION from rules/rauc.in to platforms/image-rauc.in

 platforms/image-rauc.in | 7 +++++++
 rules/image-rauc.make   | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/platforms/image-rauc.in b/platforms/image-rauc.in
index 658ddd5cd..d06ec85a1 100644
--- a/platforms/image-rauc.in
+++ b/platforms/image-rauc.in
@@ -25,4 +25,11 @@ config IMAGE_RAUC_DESCRIPTION
 	help
 	  Optional description that will be placed in the Bundles metadata.
 
+config RAUC_BUNDLE_VERSION
+	prompt "RAUC Bundle Version"
+	string
+	default "${PTXDIST_BSP_AUTOVERSION}"
+	help
+	  Overwrite the bundle version if needed.
+
 endif
diff --git a/rules/image-rauc.make b/rules/image-rauc.make
index bf7408db8..0ee31b0ab 100644
--- a/rules/image-rauc.make
+++ b/rules/image-rauc.make
@@ -31,7 +31,7 @@ IMAGE_RAUC_CERT = $(PTXDIST_PLATFORMCONFIGDIR)/config/rauc/rauc.cert.pem
 
 IMAGE_RAUC_ENV	:= \
 	RAUC_BUNDLE_COMPATIBLE="$(call remove_quotes,$(PTXCONF_RAUC_COMPATIBLE))" \
-	RAUC_BUNDLE_VERSION=$(PTXDIST_BSP_AUTOVERSION) \
+	RAUC_BUNDLE_VERSION="$(call remove_quotes, $(PTXCONF_RAUC_BUNDLE_VERSION))" \
 	RAUC_BUNDLE_BUILD=$(shell date +%FT%T%z) \
 	RAUC_BUNDLE_DESCRIPTION=$(PTXCONF_IMAGE_RAUC_DESCRIPTION) \
 	RAUC_KEY=$(IMAGE_RAUC_KEY) \
-- 
2.18.0


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-10 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10 14:51 [ptxdist] [PATCH v2] rauc: Make rauc bundle version configurable Gavin Schenk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox