From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 20 Jun 2022 08:24:21 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o3Apg-007oLP-4t for lore@lore.pengutronix.de; Mon, 20 Jun 2022 08:24:21 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1o3Apg-0000uz-3d; Mon, 20 Jun 2022 08:24:20 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o3AlT-0004eB-VD; Mon, 20 Jun 2022 08:20:00 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1o3AlR-001ahK-Sb; Mon, 20 Jun 2022 08:19:59 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1o3AlS-006GQB-KP; Mon, 20 Jun 2022 08:19:58 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Mon, 20 Jun 2022 08:19:58 +0200 Message-Id: <20220620061958.1493048-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220615142217.990960-3-ejo@pengutronix.de> References: <20220615142217.990960-3-ejo@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] RAUC: add option to enable streaming support X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Enrico Jorns Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 7c378e97df58c372cdef473fbd2b0ee613dfeff9. Michael [sent from post-receive hook] On Mon, 20 Jun 2022 08:19:58 +0200, Enrico Jorns wrote: > Enable it by default so that default installation can benefit from this. > Can be deactivated for saving space or for deactivating network > functionality. > Web server must support HTTP range requests for this and NBD support > must be enabled in kernel. > > Signed-off-by: Enrico Jorns > Message-Id: <20220615142217.990960-3-ejo@pengutronix.de> > [mol: change default to n] > Signed-off-by: Michael Olbrich > > diff --git a/rules/rauc.in b/rules/rauc.in > index aee162b83ac4..c6c697df7e9d 100644 > --- a/rules/rauc.in > +++ b/rules/rauc.in > @@ -13,6 +13,7 @@ menuconfig RAUC > select BUSYBOX_FEATURE_SEAMLESS_GZ if BUSYBOX_TAR > select DBUS if RAUC_SERVICE > select LIBCURL if RAUC_NETWORK > + select LIBNL3 if RAUC_STREAMING > select JSON_GLIB if RAUC_JSON > select UTIL_LINUX_NG_LIBFDISK if RAUC_GPT > select SQUASHFS_TOOLS if RUNTIME > @@ -44,6 +45,15 @@ config RAUC_NETWORK > Note that network is primarily designed to be used for RAUC'S casync > capabilities, not for fetching full bundles. > > +config RAUC_STREAMING > + bool > + prompt "Enable streaming support" > + select RAUC_NETWORK > + help > + Enables built-in HTTP(S) streaming support that allows RAUC to > + access remote bundles via http/https and write images without the > + need for intermediate storage on the target. > + > config RAUC_JSON > bool > prompt "JSON support" > diff --git a/rules/rauc.make b/rules/rauc.make > index a1be8b1b2f89..78f6c894b73e 100644 > --- a/rules/rauc.make > +++ b/rules/rauc.make > @@ -46,6 +46,7 @@ RAUC_CONF_OPT := \ > --$(call ptx/endis,PTXCONF_RAUC_SERVICE)-service \ > --disable-create \ > --$(call ptx/endis,PTXCONF_RAUC_NETWORK)-network \ > + --$(call ptx/endis,PTXCONF_RAUC_STREAMING)-streaming \ > --$(call ptx/endis,PTXCONF_RAUC_JSON)-json \ > --$(call ptx/endis,PTXCONF_RAUC_GPT)-gpt \ > --with-gcov=gcov \