From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixAYN-00076e-SV for ptxdist@pengutronix.de; Thu, 30 Jan 2020 15:12:19 +0100 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ixAYN-0000ZV-K2 for ptxdist@pengutronix.de; Thu, 30 Jan 2020 15:12:19 +0100 Date: Thu, 30 Jan 2020 15:12:19 +0100 From: Michael Olbrich Message-ID: <20200130141219.GE2615@pengutronix.de> References: <20200129110619.22179-1-u.oelmann@pengutronix.de> <20200129110619.22179-2-u.oelmann@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200129110619.22179-2-u.oelmann@pengutronix.de> Subject: Re: [ptxdist] [PATCH v4 2/3] host-yarn: new package 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="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Wed, Jan 29, 2020 at 12:06:18PM +0100, Ulrich =D6lmann wrote: > From: Bj=F6rn Esser > = > Fast, reliable, and secure dependency management for Node.js. > = > We use Yarn to generate an offline cache and a lock-file to be able to in= stall > all needed Node.js-packages reproducibly. This works even in environments > without internet-connectivity, as long as the cache and the lock-file are= in > reach. > = > Signed-off-by: Bj=F6rn Esser > [uol: adjusted commit message] > Signed-off-by: Ulrich =D6lmann > --- > Range-diff of v4 against v3: > 2: e07e8a621a29 ! 2: c78fde2a6233 host-yarn: New package. > @@ Metadata > Author: Bj=F6rn Esser > = > ## Commit message ## > - host-yarn: New package. > + host-yarn: new package > = > Fast, reliable, and secure dependency management for Node.js. > = > - We use Yarn to generate a cache and a lock-file to be able > - to install all needed Node.js-packages reproducibly. This > - works even in environments without internet-connectivity, as > - long as the cache and the lock-file are checked-in into the > - version controll system (e.g. git) of the BSP. > + We use Yarn to generate an offline cache and a lock-file to be a= ble to install > + all needed Node.js-packages reproducibly. This works even in env= ironments > + without internet-connectivity, as long as the cache and the lock= -file are in > + reach. > = > Signed-off-by: Bj=F6rn Esser > + [uol: adjusted commit message] > + Signed-off-by: Ulrich =D6lmann > = > ## rules/host-yarn.in (new) ## > @@ > = > = > rules/host-yarn.in | 6 +++++ > rules/host-yarn.make | 61 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 67 insertions(+) > create mode 100644 rules/host-yarn.in > create mode 100644 rules/host-yarn.make > = > diff --git a/rules/host-yarn.in b/rules/host-yarn.in > new file mode 100644 > index 000000000000..d98dd6c34620 > --- /dev/null > +++ b/rules/host-yarn.in > @@ -0,0 +1,6 @@ > +## SECTION=3Dhosttools_noprompt > + > +config HOST_YARN > + tristate > + default y if ALLYES > + select HOST_NODEJS > diff --git a/rules/host-yarn.make b/rules/host-yarn.make > new file mode 100644 > index 000000000000..55a415945031 > --- /dev/null > +++ b/rules/host-yarn.make > @@ -0,0 +1,61 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2017 by Juergen Borleis > +# > +# See CREDITS for details about who has contributed to this project. Remove the CREDITS line. > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > +# 2019-May-05, Daniel Arnold, Updated to yarn 1.15.2 > +# 2020-January-09, Bj=F6rn Esser, Updated to yarn 1.21.1 > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_YARN) +=3D host-yarn > + > +# > +# Paths and names > +# > +HOST_YARN_VERSION :=3D 1.21.1 > +HOST_YARN_MD5 :=3D cf49e663e0f56aa15f1740c77354ebe2 > +HOST_YARN :=3D yarn-$(HOST_YARN_VERSION) > +HOST_YARN_SUFFIX :=3D js > +HOST_YARN_URL :=3D https://github.com/yarnpkg/yarn/releases/download/v$= (HOST_YARN_VERSION)/$(HOST_YARN).$(HOST_YARN_SUFFIX) > +HOST_YARN_SOURCE :=3D $(SRCDIR)/$(HOST_YARN).$(HOST_YARN_SUFFIX) > + > +# ----------------------------------------------------------------------= ------ > +# Extract (nothing to be done here) > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/host-yarn.extract: > + @$(call targetinfo) > + @$(call touch) > + > +# ----------------------------------------------------------------------= ------ > +# Prepare (nothing to be done here) > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/host-yarn.prepare: > + @$(call targetinfo) > + @$(call touch) > + > +# ----------------------------------------------------------------------= ------ > +# Compile (nothing to be done here) > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/host-yarn.compile: > + @$(call targetinfo) > + @$(call touch) > + > +# ----------------------------------------------------------------------= ------ > +# Install > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/host-yarn.install: > + @$(call targetinfo) > + @install -pm 0755 $(HOST_YARN_SOURCE) $(PTXDIST_SYSROOT_HOST)/bin/yarn @$(call world/execute, HOST_YARN, \ install -vDm 0755 $(HOST_YARN_SOURCE) \ $(HOST_YARN_PKGDIR)/bin/yarn) Michael > + @$(call touch) > + > +# vim: syntax=3Dmake > -- = > 2.25.0 > = > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de