From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1iQT40-0003oc-02 for ptxdist@pengutronix.de; Fri, 01 Nov 2019 10:17:49 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990411AbfKAJRpo6vor (ORCPT ); Fri, 1 Nov 2019 10:17:45 +0100 Date: Fri, 1 Nov 2019 10:17:44 +0100 From: Ladislav Michl Message-ID: <20191101091744.GA22947@lenoch> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH 0/2 v2] add image-rauc-casync List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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