mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 0/2 v2] add image-rauc-casync
@ 2019-11-01  9:17 Ladislav Michl
  2019-11-01  9:18 ` [ptxdist] [PATCH 1/2 v2] host-xz: build shared libs again Ladislav Michl
  2019-11-01  9:19 ` [ptxdist] [PATCH 2/2 v2] casync: new package Ladislav Michl
  0 siblings, 2 replies; 3+ messages in thread
From: Ladislav Michl @ 2019-11-01  9:17 UTC (permalink / raw)
  To: ptxdist

Hi there,

this is second attempt to find out how (if at all) are people using
rauc with casync support. Here it is used to build zip file with
casync update to be deployed on IIS server:
--- 8< ---
#
# We provide this package
#
IMAGE_PACKAGES-$(PTXCONF_IMAGE_RAUC_CASYNC) += image-rauc-casync

#
# Paths and names
#
IMAGE_RAUC_CASYNC		:= image-rauc-casync
IMAGE_RAUC_CASYNC_VER		:= $(call ptx/sh, git describe --abbrev=0 --tags)
IMAGE_RAUC_CASYNC_VER_FULL	:= $(call ptx/sh, git describe --long --tags)
IMAGE_RAUC_CASYNC_DIR		:= $(BUILDDIR)/$(IMAGE_RAUC_CASYNC)
IMAGE_RAUC_CASYNC_IMAGE		:= $(IMAGEDIR)/$(IMAGE_RAUC_CASYNC_VER).zip

# ----------------------------------------------------------------------------
# Image
# ----------------------------------------------------------------------------

ifdef PTXCONF_IMAGE_RAUC_CASYNC

IMAGE_RAUC_KEY		:= $(call ptx/in-platformconfigdir, config/rauc/rauc.key.pem)
IMAGE_RAUC_CERT		:= $(call ptx/in-platformconfigdir, config/rauc/rauc.cert.pem)
IMAGE_RAUC_KEYRING	:= $(call ptx/in-platformconfigdir, projectroot/etc/rauc/ca.cert.pem)

TVM4_MANIFEST_FILE	:= TVM4_$(IMAGE_RAUC_CASYNC_VER).manifest
TVM4_MANIFEST_TEMPLATE	:= $(call ptx/in-platformconfigdir, config/images/manifest-template)

$(IMAGE_RAUC_CASYNC_IMAGE): $(TVM4_MANIFEST_TEMPLATE)
	@$(call targetinfo)
	@sed -e 's,@VERSION@,$(IMAGE_RAUC_CASYNC_VER),g' \
		-e 's,@VERSIONFULL@,$(IMAGE_RAUC_CASYNC_VER_FULL),g' \
		 $(TVM4_MANIFEST_TEMPLATE) > $(PTXDIST_TEMPDIR)/$(TVM4_MANIFEST_FILE)
	@rauc convert --cert=$(IMAGE_RAUC_CERT) \
		--key=$(IMAGE_RAUC_KEY) --keyring=$(IMAGE_RAUC_KEYRING) \
		$(IMAGE_RAUC_IMAGE) $(PTXDIST_TEMPDIR)/casync-bundle.raucb
	@cd $(PTXDIST_TEMPDIR) && \
		zip -q -m -r update.zip casync-bundle.raucb casync-bundle.castr
	@zip -q -m -j $(IMAGE_RAUC_CASYNC_IMAGE) $(PTXDIST_TEMPDIR)/update.zip \
		$(PTXDIST_TEMPDIR)/$(TVM4_MANIFEST_FILE)
	@$(call finish)

endif

--- 8< ---

Ladislav Michl (2):
  host-xz: build shared libs again
  casync: new package

 rules/casync.in        | 36 ++++++++++++++++++++
 rules/casync.make      | 76 ++++++++++++++++++++++++++++++++++++++++++
 rules/host-casync.in   | 11 ++++++
 rules/host-casync.make | 33 ++++++++++++++++++
 rules/host-xz.make     |  5 ++-
 5 files changed, 158 insertions(+), 3 deletions(-)
 create mode 100644 rules/casync.in
 create mode 100644 rules/casync.make
 create mode 100644 rules/host-casync.in
 create mode 100644 rules/host-casync.make

-- 
2.24.0.rc2

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-01  9:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01  9:17 [ptxdist] [PATCH 0/2 v2] add image-rauc-casync Ladislav Michl
2019-11-01  9:18 ` [ptxdist] [PATCH 1/2 v2] host-xz: build shared libs again Ladislav Michl
2019-11-01  9:19 ` [ptxdist] [PATCH 2/2 v2] casync: new package Ladislav Michl

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