All of lore.kernel.org
 help / color / mirror / Atom feed
* how to change system files
@ 2011-06-28  8:35 Jaap de Jong
  2011-06-28  9:23 ` Anders Darander
  0 siblings, 1 reply; 7+ messages in thread
From: Jaap de Jong @ 2011-06-28  8:35 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

Hi All,

annoying question here...

What is the best way to change files like /etc/network/interfaces?
I have about 5 files or so that already are supplied by (default) 
packages; they are not in 1 package.
I would like to have them in one package that I own so that I can easily 
update them, but this is not necessary.
Is overlays the way to go?

Thanks!
Jaap






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: how to change system files
  2011-06-28  8:35 how to change system files Jaap de Jong
@ 2011-06-28  9:23 ` Anders Darander
  2011-06-28  9:49   ` Jaap de Jong
  0 siblings, 1 reply; 7+ messages in thread
From: Anders Darander @ 2011-06-28  9:23 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Jun 28, 2011 at 10:35, Jaap de Jong <jaap.dejong@nedap.com> wrote:
> What is the best way to change files like /etc/network/interfaces?
> I have about 5 files or so that already are supplied by (default) packages;
> they are not in 1 package.
> I would like to have them in one package that I own so that I can easily
> update them, but this is not necessary.
> Is overlays the way to go?

I'm handling this by using .bbappend's in a local layer.
This won't give you one package, rather the ability to replace/add files (e.g.
/etc/network/interfaces) in the standard packages.

Regards,
Anders



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: how to change system files
  2011-06-28  9:23 ` Anders Darander
@ 2011-06-28  9:49   ` Jaap de Jong
  2011-06-28 10:00     ` Phil Blundell
  2011-06-28 11:46     ` Anders Darander
  0 siblings, 2 replies; 7+ messages in thread
From: Jaap de Jong @ 2011-06-28  9:49 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org



On 06/28/2011 11:23 AM, Anders Darander wrote:
> On Tue, Jun 28, 2011 at 10:35, Jaap de Jong<jaap.dejong@nedap.com>  wrote:
>> What is the best way to change files like /etc/network/interfaces?
>> I have about 5 files or so that already are supplied by (default) packages;
>> they are not in 1 package.
>> I would like to have them in one package that I own so that I can easily
>> update them, but this is not necessary.
>> Is overlays the way to go?
> I'm handling this by using .bbappend's in a local layer.
> This won't give you one package, rather the ability to replace/add files (e.g.
> /etc/network/interfaces) in the standard packages.
>
Yeah, but what if I decide at a certain point in time to change the 
/etc/network/interfaces file?
Normally I would increment PR in the bb file and then build it.
And finally at the target I would do opkg upgrade.

Jaap



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: how to change system files
  2011-06-28  9:49   ` Jaap de Jong
@ 2011-06-28 10:00     ` Phil Blundell
  2011-06-28 11:46     ` Anders Darander
  1 sibling, 0 replies; 7+ messages in thread
From: Phil Blundell @ 2011-06-28 10:00 UTC (permalink / raw)
  To: openembedded-devel

On Tue, 2011-06-28 at 11:49 +0200, Jaap de Jong wrote:
> Yeah, but what if I decide at a certain point in time to change the 
> /etc/network/interfaces file?
> Normally I would increment PR in the bb file and then build it.
> And finally at the target I would do opkg upgrade.

Just the same.  Increment PR in your .bbappend, rebuild, opkg upgrade.

p.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: how to change system files
  2011-06-28  9:49   ` Jaap de Jong
  2011-06-28 10:00     ` Phil Blundell
@ 2011-06-28 11:46     ` Anders Darander
  2011-06-28 11:52       ` Jaap de Jong
  2011-06-30  8:32       ` Jaap de Jong
  1 sibling, 2 replies; 7+ messages in thread
From: Anders Darander @ 2011-06-28 11:46 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Jun 28, 2011 at 11:49, Jaap de Jong <jaap.dejong@nedap.com> wrote:
> On 06/28/2011 11:23 AM, Anders Darander wrote:
> Yeah, but what if I decide at a certain point in time to change the
> /etc/network/interfaces file?
> Normally I would increment PR in the bb file and then build it.
> And finally at the target I would do opkg upgrade.

Just as Phil said, you increment PR in your .bbappend-file.

I'm oftend appending to the PR in my .bbappend-files.

Regards,
Anders



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: how to change system files
  2011-06-28 11:46     ` Anders Darander
@ 2011-06-28 11:52       ` Jaap de Jong
  2011-06-30  8:32       ` Jaap de Jong
  1 sibling, 0 replies; 7+ messages in thread
From: Jaap de Jong @ 2011-06-28 11:52 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

On 06/28/2011 01:46 PM, Anders Darander wrote:
> On Tue, Jun 28, 2011 at 11:49, Jaap de Jong<jaap.dejong@nedap.com>  wrote:
>> On 06/28/2011 11:23 AM, Anders Darander wrote:
>> Yeah, but what if I decide at a certain point in time to change the
>> /etc/network/interfaces file?
>> Normally I would increment PR in the bb file and then build it.
>> And finally at the target I would do opkg upgrade.
> Just as Phil said, you increment PR in your .bbappend-file.
>
> I'm oftend appending to the PR in my .bbappend-files.
Thanks! I will try it.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: how to change system files
  2011-06-28 11:46     ` Anders Darander
  2011-06-28 11:52       ` Jaap de Jong
@ 2011-06-30  8:32       ` Jaap de Jong
  1 sibling, 0 replies; 7+ messages in thread
From: Jaap de Jong @ 2011-06-30  8:32 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

On 06/28/2011 01:46 PM, Anders Darander wrote:
> On Tue, Jun 28, 2011 at 11:49, Jaap de Jong<jaap.dejong@nedap.com>  wrote:
>> On 06/28/2011 11:23 AM, Anders Darander wrote:
>> Yeah, but what if I decide at a certain point in time to change the
>> /etc/network/interfaces file?
>> Normally I would increment PR in the bb file and then build it.
>> And finally at the target I would do opkg upgrade.
> Just as Phil said, you increment PR in your .bbappend-file.
>
> I'm oftend appending to the PR in my .bbappend-files.
>

I'm having some trouble with it...

If I want to use .bbappend do I need to add bblayers as well?

If I don't I get this error message:

    ERROR: /home/jdj/oe/mystuff/recipes/netbase/netbase_4.21.bbappend is
    not a BitBake file while parsing
    /home/jdj/oe/mystuff/recipes/netbase/netbase_4.21.bbappend


Where /home/jdj/oe/mystuff/recipes/netbase/netbase_4.21.bbappend is:

    FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
    PRINC = "1"


If I do use bblayers, I'm not sure about my local.conf. It contains some

    BBFILES, BBFILE_COLLECTIONS, BBFILE_PATTERN_xxx and
    BBFILE_PRIORITY_xxx lines

If I remove these lines then it looks like bitbake can't find any recipe.

Jaap


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-30  8:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-28  8:35 how to change system files Jaap de Jong
2011-06-28  9:23 ` Anders Darander
2011-06-28  9:49   ` Jaap de Jong
2011-06-28 10:00     ` Phil Blundell
2011-06-28 11:46     ` Anders Darander
2011-06-28 11:52       ` Jaap de Jong
2011-06-30  8:32       ` Jaap de Jong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.