From: Andreas Glatz <andi.glatz@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to create "hotfix" packages
Date: Thu, 2 Nov 2017 14:09:09 +0000 [thread overview]
Message-ID: <CAKJ14Nd5FyuwOtKZHS_j7bZUY5J1hVLAabm5p34nBji=7pWyLQ@mail.gmail.com> (raw)
In-Reply-To: <20171102123833.izbaa57v65ktzxwd@pengutronix.de>
On Thu, Nov 2, 2017 at 12:38 PM, Michael Olbrich
<m.olbrich@pengutronix.de> wrote:
> 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 "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.
>
We had a similar use-case, albeit it wasn't for a hotfix package.
I think the steps to achieve your goal could be as follows:
(i) you mark your hotfix package as 'tristate' in the *.in file
(ii) you create a collection config that does NOT include the hotfix
package, e.g. using 'ptxdist menuconfig collection
configs/mycollectionconfig'
(iii) run 'ptxdist go' (without any collection config link) to
generate all the packages + hotfix package
(iv) run 'ptxdist --collectionconfig=configs/mycollectionconfig images
=> creates the flash images, but w/o hotfix package applied
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2017-11-02 14:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 17:28 Guillermo Rodriguez Garcia
2017-11-01 11:01 ` Michael Olbrich
2017-11-02 12:20 ` Guillermo Rodriguez Garcia
2017-11-02 12:38 ` Michael Olbrich
2017-11-02 14:09 ` Andreas Glatz [this message]
2017-11-02 15:19 ` Guillermo Rodriguez Garcia
2017-11-02 15:33 ` Michael Olbrich
2017-11-02 15:50 ` Guillermo Rodriguez Garcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKJ14Nd5FyuwOtKZHS_j7bZUY5J1hVLAabm5p34nBji=7pWyLQ@mail.gmail.com' \
--to=andi.glatz@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox