From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1e9aKq-0005eE-UT for ptxdist@pengutronix.de; Tue, 31 Oct 2017 18:28:21 +0100 Received: by mail-wr0-x230.google.com with SMTP id o44so16629080wrf.11 for ; Tue, 31 Oct 2017 10:28:20 -0700 (PDT) MIME-Version: 1.0 From: Guillermo Rodriguez Garcia Date: Tue, 31 Oct 2017 18:28:14 +0100 Message-ID: Subject: [ptxdist] How to create "hotfix" packages List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============2016256454==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============2016256454== Content-Type: multipart/alternative; boundary="f40304388d747c7db5055cdb14ef" --f40304388d747c7db5055cdb14ef Content-Type: text/plain; charset="UTF-8" Hello all, For a ptxdist BSP I am managing I need to create a "hotfix" package to patch a number of files on already deployed devices. This package will only be used on devices which are already deployed, and its files should not be part of the rootfs images if the platform is rebuilt. Is it possible to have ptxdist build an .ipk package that will not be included in the filesystem images ? I was hoping that marking the package as "M" in ptxdist menuconfig would do the trick :) but that doesn't do what I thought. Thank you, Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --f40304388d747c7db5055cdb14ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

For a ptxdist BSP I am manag= ing I need to create a "hotfix" package to patch a number of file= s on already deployed devices.

This package will o= nly be used on devices which are already deployed, and its files should not= be part of the rootfs images if the platform is rebuilt. Is it possible to= have ptxdist build an .ipk package that will not be included in the filesy= stem images ?

I was hoping that marking the packag= e as "M" in ptxdist menuconfig would do the trick :) but that doe= sn't do what I thought.

Thank you,
<= br>
Guille= rmo Rodriguez Garcia
guille.rodriguez@gmail.com
--f40304388d747c7db5055cdb14ef-- --===============2016256454== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============2016256454==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eAHGv-0004g3-R5 for ptxdist@pengutronix.de; Thu, 02 Nov 2017 16:19:10 +0100 Received: by mail-wm0-x235.google.com with SMTP id r68so12183050wmr.3 for ; Thu, 02 Nov 2017 08:19:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20171102123833.izbaa57v65ktzxwd@pengutronix.de> References: <20171101110105.diihar3apnoooszg@pengutronix.de> <20171102123833.izbaa57v65ktzxwd@pengutronix.de> From: Guillermo Rodriguez Garcia Date: Thu, 2 Nov 2017 16:19:03 +0100 Message-ID: Subject: Re: [ptxdist] How to create "hotfix" packages List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0280098581==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============0280098581== Content-Type: multipart/alternative; boundary="001a114699dc2bfcb2055d01827b" --001a114699dc2bfcb2055d01827b Content-Type: text/plain; charset="UTF-8" 2017-11-02 13:38 GMT+01:00 Michael Olbrich : > On Thu, Nov 02, 2017 at 01:20:17PM +0100, Guillermo Rodriguez Garcia wrote: > > 2017-11-01 12:01 GMT+01:00 Michael Olbrich : > > > On Tue, Oct 31, 2017 at 06:28:14PM +0100, Guillermo Rodriguez Garcia > wrote: > > > > For a ptxdist BSP I am managing I need to create a "hotfix" package > to > > > > patch a number of files on already deployed devices. > > > > > > > > This package will only be used on devices which are already > deployed, and > > > > its files should not be part of the rootfs images if the platform is > > > > rebuilt. Is it possible to have ptxdist build an .ipk package that > will > > > not > > > > be included in the filesystem images ? > > > > > > > > I was hoping that marking the package as "M" in ptxdist menuconfig > would > > > do > > > > the trick :) but that doesn't do what I thought. > > > > > > It can be used like that, but for a single package, it's a bit complex. > > > > > > > Do you marking the package as "M"? I tried that but it seems to do > exactly > > the same as when I just enable it (with "*"). Am I missing something? > > No, you need to use collections as well. There is some stuff about this in > the documentation. > Ah, yes. > > > > If you use the regular images, then you can create a "lazy" package. > > > Just create a normal package and then modify the makefile like this: > > > "PACKAGES-$(PTXCONF_..." -> "LAZY_PACKAGES-$(PTXCONF_..." > > > > > > The package will not be added to the rootfs, however, it will not be > built > > > by default either. So you need to run "ptxdist targetinstall > " to > > > build it. > > > > > > > But then when I do ptxdist targetinstall , the .ipk will be > > built, but will the files also be added to sysroot? The latter is what I > > would like to avoid... > > Why? Sysroot is not used for the target rootfs. Do the files conflict with > other packages? In this case, you could define a custom .install.post > target in the package makefile. That's the stage that copies the files to > sysroot-target. > Sorry for the confusion, I think I am mixing the sysroot-target with the target rootfs. The actual question should have been: When I do ptxdist targetinstall , the .ipk will be built, files copied to sysroot etc. If I now recreate the rootfs images (via ptxdist images), will the files from this .ipk (which has now been built) be included? This is what I want to avoid. The reason as you point out is that these files conflict with other packages. Thank you, Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --001a114699dc2bfcb2055d01827b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-11-02 13:38 GMT+01:00 Michael Olbrich <m.olbrich@pengutron= ix.de>:
= On Thu, Nov 02, 2017 at 01:20:17PM +0100, Guillermo = Rodriguez Garcia wrote:
> 2017-11-01 12:01 GMT+01:00 Michael Olbrich <m.olbrich@pengutronix.de>:
> > On Tue, Oct 31, 2017 at 06:28:14PM = +0100, Guillermo Rodriguez Garcia wrote:
> > > For a ptxdist BSP I am managing I need to create a "hot= fix" package to
> > > patch a number of files on already deployed devices.
> > >
> > > This package will only be used on devices which are already = deployed, and
> > > its files should not be part of the rootfs images if the pla= tform is
> > > rebuilt. Is it possible to have ptxdist build an .ipk packag= e that will
> > not
> > > be included in the filesystem images ?
> > >
> > > I was hoping that marking the package as "M" in pt= xdist menuconfig would
> > do
> > > the trick :) but that doesn't do what I thought.
> >
> > It can be used like that, but for a single package, it's a bi= t complex.
> >
>
> Do you marking the package as "M"? I tried that but it seems= to do exactly
> the same as when I just enable it (with "*"). Am I missing s= omething?

No, you need to use collections as well. There is some stuff about t= his in
the documentation.

Ah, yes.
= =C2=A0

> > If you use the regular images, then you can create a "lazy&q= uot; package.
> > Just create a normal package and then modify the makefile like th= is:
> > "PACKAGES-$(PTXCONF_..." -> "LAZY_PACKAGES-$(PT= XCONF_..."
> >
> > The package will not be added to the rootfs, however, it will not= be built
> > by default either. So you need to run "ptxdist targetinstall= <pkg-name>" to
> > build it.
> >
>
> But then when I do ptxdist targetinstall <pkg-name>, the .ipk wi= ll be
> built, but will the files also be added to sysroot? The latter is what= I
> would like to avoid...

Why? Sysroot is not used for the target rootfs. Do the files conflic= t with
other packages? In this case, you could define a custom <pkg>.install= .post
target in the package makefile. That's the stage that copies the files = to
sysroot-target.

Sorry for the confusion= , I think I am mixing the sysroot-target with the
target rootfs. = The actual question should have been:
=C2=A0
When I do = ptxdist targetinstall <pkg-name>, the .ipk will be=C2=A0built, files<= /div>
copied to sysroot etc.

If I now recreate= the rootfs images (via ptxdist images), will the files from
this= .ipk (which has now been built) be included? This is what I want
to avoid.

The reason as you point out is that the= se files conflict with other packages.

Th= ank you,

Guillermo Rodriguez Garcia=
guille.= rodriguez@gmail.com
--001a114699dc2bfcb2055d01827b-- --===============0280098581== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0280098581==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eAHUt-0007Hv-Ca for ptxdist@pengutronix.de; Thu, 02 Nov 2017 16:33:35 +0100 Received: from mol by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1eAHUt-0003Pw-49 for ptxdist@pengutronix.de; Thu, 02 Nov 2017 16:33:35 +0100 Date: Thu, 2 Nov 2017 16:33:35 +0100 From: Michael Olbrich Message-ID: <20171102153335.23xsmv63pqlytedw@pengutronix.de> References: <20171101110105.diihar3apnoooszg@pengutronix.de> <20171102123833.izbaa57v65ktzxwd@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] How to create "hotfix" packages 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="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de T24gVGh1LCBOb3YgMDIsIDIwMTcgYXQgMDQ6MTk6MDNQTSArMDEwMCwgR3VpbGxlcm1vIFJvZHJp Z3VleiBHYXJjaWEgd3JvdGU6Cj4gMjAxNy0xMS0wMiAxMzozOCBHTVQrMDE6MDAgTWljaGFlbCBP bGJyaWNoIDxtLm9sYnJpY2hAcGVuZ3V0cm9uaXguZGU+Ogo+ID4gPiA+IElmIHlvdSB1c2UgdGhl IHJlZ3VsYXIgaW1hZ2V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bml4IGUuSy4gICAgICAgICAgICAgICAgICAgICAg ICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CkluZHVzdHJpYWwgTGludXggU29s dXRpb25zICAgICAgICAgICAgICAgICB8IGh0dHA6Ly93d3cucGVuZ3V0cm9uaXguZGUvICB8ClBl aW5lciBTdHIuIDYtOCwgMzExMzcgSGlsZGVzaGVpbSwgR2VybWFueSB8IFBob25lOiArNDktNTEy MS0yMDY5MTctMCAgICB8CkFtdHNnZXJpY2h0IEhpbGRlc2hlaW0sIEhSQSAyNjg2ICAgICAgICAg ICB8IEZheDogICArNDktNTEyMS0yMDY5MTctNTU1NSB8CgpfX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fXwpwdHhkaXN0IG1haWxpbmcgbGlzdApwdHhkaXN0QHBl bmd1dHJvbml4LmRl From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eAElV-0003FF-SK for ptxdist@pengutronix.de; Thu, 02 Nov 2017 13:38:33 +0100 Received: from mol by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1eAElV-0006eo-Iu for ptxdist@pengutronix.de; Thu, 02 Nov 2017 13:38:33 +0100 Date: Thu, 2 Nov 2017 13:38:33 +0100 From: Michael Olbrich Message-ID: <20171102123833.izbaa57v65ktzxwd@pengutronix.de> References: <20171101110105.diihar3apnoooszg@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] How to create "hotfix" packages 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="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptx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jan 1 00:00:00 1970 Return-path: Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eAGBI-0001p1-GW for ptxdist@pengutronix.de; Thu, 02 Nov 2017 15:09:16 +0100 Received: by mail-oi0-x241.google.com with SMTP id m198so8906549oig.5 for ; Thu, 02 Nov 2017 07:09:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20171102123833.izbaa57v65ktzxwd@pengutronix.de> References: <20171101110105.diihar3apnoooszg@pengutronix.de> <20171102123833.izbaa57v65ktzxwd@pengutronix.de> From: Andreas Glatz Date: Thu, 2 Nov 2017 14:09:09 +0000 Message-ID: Subject: Re: [ptxdist] How to create "hotfix" packages 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="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de T24gVGh1LCBOb3YgMiwgMjAxNyBhdCAxMjozOCBQTSwgTWljaGFlbCBPbGJyaWNoCjxtLm9sYnJp Y2hAcGVuZ3V0cm9uaXguZGU+IHdyb3RlOgo+IE9uIFRodSwgTm92IDAyLCAyMDE3IGF0IDAxOjIw OjE3UE0gKzAxMDAsIEd1aWxsZXJtbyBSb2RyaWd1ZXogR2FyY2lhIHdyb3RlOgo+PiAyMDE3LTEx LTAxIDEyOjAxIEdNVCswMTowMCBNaWNoYWVsIE9sYnJpY2ggPG0ub2xicmljaEBwZW5ndXRyb25p eC5kZT46Cj4+ID4gT24gVHVlLCBPY3QgMzEsIDIwMTcgYXQgMDY6Mjg6MTRQTSArMDEwMCwgR3Vp bGxlcm1vIFJvZHJpZ3VleiBHYXJjaWEgd3JvdGU6Cj4+ID4gPiBGb3IgYSBwdHhkaXN0IEJTUC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00:00:00 1970 Return-path: Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eAETw-0008ON-4p for ptxdist@pengutronix.de; Thu, 02 Nov 2017 13:20:24 +0100 Received: by mail-wm0-x232.google.com with SMTP id r196so10683413wmf.2 for ; Thu, 02 Nov 2017 05:20:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20171101110105.diihar3apnoooszg@pengutronix.de> References: <20171101110105.diihar3apnoooszg@pengutronix.de> From: Guillermo Rodriguez Garcia Date: Thu, 2 Nov 2017 13:20:17 +0100 Message-ID: Subject: Re: [ptxdist] How to create "hotfix" packages List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0170589587==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============0170589587== Content-Type: multipart/alternative; boundary="001a114bd80eddc85c055cff020a" --001a114bd80eddc85c055cff020a Content-Type: text/plain; charset="UTF-8" Hello Michael, 2017-11-01 12:01 GMT+01:00 Michael Olbrich : > Hi, > > On Tue, Oct 31, 2017 at 06:28:14PM +0100, Guillermo Rodriguez Garcia wrote: > > For a ptxdist BSP I am managing I need to create a "hotfix" package to > > patch a number of files on already deployed devices. > > > > This package will only be used on devices which are already deployed, and > > its files should not be part of the rootfs images if the platform is > > rebuilt. Is it possible to have ptxdist build an .ipk package that will > not > > be included in the filesystem images ? > > > > I was hoping that marking the package as "M" in ptxdist menuconfig would > do > > the trick :) but that doesn't do what I thought. > > It can be used like that, but for a single package, it's a bit complex. > Do you marking the package as "M"? I tried that but it seems to do exactly the same as when I just enable it (with "*"). Am I missing something? > If you use the regular images, then you can create a "lazy" package. > Just create a normal package and then modify the makefile like this: > "PACKAGES-$(PTXCONF_..." -> "LAZY_PACKAGES-$(PTXCONF_..." > > The package will not be added to the rootfs, however, it will not be built > by default either. So you need to run "ptxdist targetinstall " to > build it. > But then when I do ptxdist targetinstall , the .ipk will be built, but will the files also be added to sysroot? The latter is what I would like to avoid... Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --001a114bd80eddc85c055cff020a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Michael,

2017-11-01 12:01 GMT+01:00 Michael Olbrich = <m.olbrich= @pengutronix.de>:
Hi,

On Tue, Oct 31, 2017 at 06:28:14PM +0100, Guillermo Rodriguez Garcia wrote:=
> For a ptxdist BSP I am managing I need to create a "hotfix" = package to
> patch a number of files on already deployed devices.
>
> This package will only be used on devices which are already deployed, = and
> its files should not be part of the rootfs images if the platform is > rebuilt. Is it possible to have ptxdist build an .ipk package that wil= l not
> be included in the filesystem images ?
>
> I was hoping that marking the package as "M" in ptxdist menu= config would do
> the trick :) but that doesn't do what I thought.

It can be used like that, but for a single package, it's a bit c= omplex.

Do you marking the package as &= quot;M"? I tried that but it seems to do exactly the same as when I ju= st enable it (with "*"). Am I missing something?
=C2=A0=
If you use the regular images, then you can create a "lazy" packa= ge.
Just create a normal package and then modify the makefile like this:
"PACKAGES-$(PTXCONF_..." -> "LAZY_PACKAGES-$(PTXCONF_...&= quot;

The package will not be added to the rootfs, however, it will not be built<= br> by default either. So you need to run "ptxdist targetinstall <pkg-n= ame>" to
build it.

But then when I do ptxdist ta= rgetinstall <pkg-name>, the .ipk will be built, but will the files al= so be added to sysroot? The latter is what I would like to avoid...


Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com<= /div>
--001a114bd80eddc85c055cff020a-- --===============0170589587== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0170589587==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9qle-0007Sq-12 for ptxdist@pengutronix.de; Wed, 01 Nov 2017 12:01:06 +0100 Received: from mol by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1e9qld-0004eG-PK for ptxdist@pengutronix.de; Wed, 01 Nov 2017 12:01:05 +0100 Date: Wed, 1 Nov 2017 12:01:05 +0100 From: Michael Olbrich Message-ID: <20171101110105.diihar3apnoooszg@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] How to create "hotfix" packages 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="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de SGksCgpPbiBUdWUsIE9jdCAzMSwgMjAxNyBhdCAwNjoyODoxNFBNICswMTAwLCBHdWlsbGVybW8g Um9kcmlndWV6IEdhcmNpYSB3cm90ZToKPiBGb3IgYSBwdHhkaXN0IEJTUCBJIGFtIG1hbmFnaW5n IEkgbmVlZCB0byBjcmVhdGUgYSAiaG90Zml4IiBwYWNrYWdlIHRvCj4gcGF0Y2ggYSBudW1iZXIg b2YgZmlsZXMgb24gYWxyZWFkeSBkZXBsb3llZCBkZXZpY2VzLgo+IAo+IFRoaXMgcGFja2FnZSB3 aWxsIG9ubHkgYmUgdXNlZCBvbiBkZXZpY2VzIHdoaWNoIGFyZSBhbHJlYWR5IGRlcGxveWVkLCBh bmQKPiBpdHMgZmlsZXMgc2hvdWxkIG5vdCBiZSBwYXJ0IG9mIHRoZSByb290ZnMga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ICAgICAgICAgICAgICAgfApJ bmR1c3RyaWFsIExpbnV4IFNvbHV0aW9ucyAgICAgICAgICAgICAgICAgfCBodHRwOi8vd3d3LnBl bmd1dHJvbml4LmRlLyAgfApQZWluZXIgU3RyLiA2LTgsIDMxMTM3IEhpbGRlc2hlaW0sIEdlcm1h bnkgfCBQaG9uZTogKzQ5LTUxMjEtMjA2OTE3LTAgICAgfApBbXRzZ2VyaWNodCBIaWxkZXNoZWlt LCBIUkEgMjY4NiAgICAgICAgICAgfCBGYXg6ICAgKzQ5LTUxMjEtMjA2OTE3LTU1NTUgfAoKX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBtYWls aW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eAHlW-0001yj-86 for ptxdist@pengutronix.de; Thu, 02 Nov 2017 16:50:46 +0100 Received: by mail-wm0-x22e.google.com with SMTP id s66so11984952wmf.5 for ; Thu, 02 Nov 2017 08:50:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20171102153335.23xsmv63pqlytedw@pengutronix.de> References: <20171101110105.diihar3apnoooszg@pengutronix.de> <20171102123833.izbaa57v65ktzxwd@pengutronix.de> <20171102153335.23xsmv63pqlytedw@pengutronix.de> From: Guillermo Rodriguez Garcia Date: Thu, 2 Nov 2017 16:50:39 +0100 Message-ID: Subject: Re: [ptxdist] How to create "hotfix" packages List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0383025061==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============0383025061== Content-Type: multipart/alternative; boundary="089e082fe40435599e055d01f354" --089e082fe40435599e055d01f354 Content-Type: text/plain; charset="UTF-8" Hi, 2017-11-02 16:33 GMT+01:00 Michael Olbrich : > On Thu, Nov 02, 2017 at 04:19:03PM +0100, Guillermo Rodriguez Garcia wrote: > > 2017-11-02 13:38 GMT+01:00 Michael Olbrich : > > > > > If you use the regular images, then you can create a "lazy" > package. > > > > > Just create a normal package and then modify the makefile like > this: > > > > > "PACKAGES-$(PTXCONF_..." -> "LAZY_PACKAGES-$(PTXCONF_..." > > > > > > > > > > The package will not be added to the rootfs, however, it will not > be > > > built > > > > > by default either. So you need to run "ptxdist targetinstall > > > " to > > > > > build it. > > > > > > > > > > > > > But then when I do ptxdist targetinstall , the .ipk will be > > > > built, but will the files also be added to sysroot? The latter is > what I > > > > would like to avoid... > > > > > > Why? Sysroot is not used for the target rootfs. Do the files conflict > with > > > other packages? In this case, you could define a custom > .install.post > > > target in the package makefile. That's the stage that copies the files > to > > > sysroot-target. > > > > > > > Sorry for the confusion, I think I am mixing the sysroot-target with the > > target rootfs. The actual question should have been: > > > > When I do ptxdist targetinstall , the .ipk will be built, files > > copied to sysroot etc. > > > > If I now recreate the rootfs images (via ptxdist images), will the files > > from > > this .ipk (which has now been built) be included? This is what I want > > to avoid. > > > > The reason as you point out is that these files conflict with other > > packages. > > That's what lazy packages are for. The rootfs images are created from the > ipkgs. All lazy packages are excluded from the default package list, so > those wont be included in the rootfs images. > Then this is exactly what I am looking for. Thank you! Guillermo --089e082fe40435599e055d01f354 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,<= /div>

2017-1= 1-02 16:33 GMT+01:00 Michael Olbrich <m.olbrich@pengutronix.de&= gt;:
On Thu, Nov = 02, 2017 at 04:19:03PM +0100, Guillermo Rodriguez Garcia wrote:
> 2017-11-02 13:38 GMT+01:00 Michael Olbrich <m.olbrich@pengutronix.de>:
> > > > If you use the regular im= ages, then you can create a "lazy" package.
> > > > Just create a normal package and then modify the makefi= le like this:
> > > > "PACKAGES-$(PTXCONF_..." -> "LAZY_PAC= KAGES-$(PTXCONF_..."
> > > >
> > > > The package will not be added to the rootfs, however, i= t will not be
> > built
> > > > by default either. So you need to run "ptxdist tar= getinstall
> > <pkg-name>" to
> > > > build it.
> > > >
> > >
> > > But then when I do ptxdist targetinstall <pkg-name>, t= he .ipk will be
> > > built, but will the files also be added to sysroot? The latt= er is what I
> > > would like to avoid...
> >
> > Why? Sysroot is not used for the target rootfs. Do the files conf= lict with
> > other packages? In this case, you could define a custom <pkg&g= t;.install.post
> > target in the package makefile. That's the stage that copies = the files to
> > sysroot-target.
> >
>
> Sorry for the confusion, I think I am mixing the sysroot-target with t= he
> target rootfs. The actual question should have been:
>
> When I do ptxdist targetinstall <pkg-name>, the .ipk will be bui= lt, files
> copied to sysroot etc.
>
> If I now recreate the rootfs images (via ptxdist images), will the fil= es
> from
> this .ipk (which has now been built) be included? This is what I want<= br> > to avoid.
>
> The reason as you point out is that these files conflict with other > packages.

That's what lazy packages are for. The rootfs images are cr= eated from the
ipkgs. All lazy packages are excluded from the default package list, so
those wont be included in the rootfs images.

Then this is exactly what I am looking for. Thank you!

=
Guillermo
--089e082fe40435599e055d01f354-- --===============0383025061== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0383025061==--