diff options
author | Gavin Schenk <g.schenk@eckelmann.de> | 2018-08-27 14:31:39 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-08-31 10:13:31 +0200 |
commit | b2f299834138539453df4860070f8f28167b1db7 (patch) | |
tree | a37c82c5a07d2b048a0f7d7d276e148929ddd35a | |
parent | ac443076eef8b54cb1094f37cc5b0cc4e5705253 (diff) | |
download | ptxdist-b2f299834138539453df4860070f8f28167b1db7.tar.gz ptxdist-b2f299834138539453df4860070f8f28167b1db7.tar.xz |
rauc: Make rauc bundle version configurable
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>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/image-rauc.make | 2 | ||||
-rw-r--r-- | rules/rauc.in | 7 |
2 files changed, 8 insertions, 1 deletions
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) \ diff --git a/rules/rauc.in b/rules/rauc.in index ec8e76f00..b2fea4bf6 100644 --- a/rules/rauc.in +++ b/rules/rauc.in @@ -33,4 +33,11 @@ config RAUC_COMPATIBLE Only if the compatible in the targets RAUC system.conf file and those in the Bundle's manifest match exactly, an update will be performed +config RAUC_BUNDLE_VERSION + prompt "RAUC Bundle Version" + string + default "${PTXDIST_BSP_AUTOVERSION}" + help + Overwrite the bundle version if needed. + endif |