All of lore.kernel.org
 help / color / mirror / Atom feed
* netbase_4.47.bbappend
@ 2012-09-03 18:03 Raul Rosetto Munoz
  2012-09-03 18:58 ` netbase_4.47.bbappend Tomas Frydrych
  0 siblings, 1 reply; 2+ messages in thread
From: Raul Rosetto Munoz @ 2012-09-03 18:03 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2054 bytes --]

Hello,

I'm try to create my inferface file to netbase.

I have in the poky folder this files

raul@phi04:/home/prjs/poky$ find . -name "*netbase*"
./meta/recipes-core/netbase
./meta/recipes-core/netbase/netbase-4.47
./meta/recipes-core/netbase/netbase_4.47.bb
./meta-yocto/recipes-core/netbase
./meta-yocto/recipes-core/netbase/netbase_4.47.bbappend
./meta-yocto/recipes-core/netbase/netbase-4.47

But I want to create my bbappend file in the meta-fsl-arm, because here I
have my recipes that I'm change what I want.

raul@phi04:/home/prjs/newcom0001/philinux/meta-fsl-arm$ ls
classes  conf  README  recipes-bsp  recipes-core  recipes-graphics
 recipes-kernel  recipes-multimedia  recipes-phi  recipes-qt

In the folder recipes-phi I have some things that I'm changed..

raul@phi04:/home/prjs/newcom0001/philinux/meta-fsl-arm/recipes-phi$ ls
ddclient  netbase  ppp

And finaly in the netbase folder:

raul@phi04:/home/prjs/newcom0001/philinux/meta-fsl-arm/recipes-phi/netbase$
ls
netbase-4.47  netbase_4.47.bbappend

I try to create this files but it never result in my inferfaces file in
/etc/netwok/interfaces.

in my netbase_4.47.bbappend file i have this:

FILESEXTRAPATHS_prepend := "${THISDIR}/netbase-4.47"

PRINC = "1"
SRC_URI_append  = "file://interfaces"

do_install_append () {
        install -m 644 ${WORKDIR}/interfaces ${D}/${sysconfdir}/network/
}

and in the folder netbase-4.47:

raul@phi04:/home/prjs/newcom0001/philinux/meta-fsl-arm/recipes-phi/netbase$
ls netbase-4.47/
interfaces
raul@phi04:/home/prjs/newcom0001/philinux/meta-fsl-arm/recipes-phi/netbase$
cat netbase-4.47/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wired or wireless interfaces
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1


Some one can Tell me Why my bbappend do not work?

Thanks for all help!




-- 
*Raul Rosetto Muñoz*

[-- Attachment #2: Type: text/html, Size: 3163 bytes --]

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

* Re: netbase_4.47.bbappend
  2012-09-03 18:03 netbase_4.47.bbappend Raul Rosetto Munoz
@ 2012-09-03 18:58 ` Tomas Frydrych
  0 siblings, 0 replies; 2+ messages in thread
From: Tomas Frydrych @ 2012-09-03 18:58 UTC (permalink / raw)
  To: yocto

Hi,

On 03/09/12 19:03, Raul Rosetto Munoz wrote:
> in my netbase_4.47.bbappend file i have this:
> 
> FILESEXTRAPATHS_prepend := "${THISDIR}/netbase-4.47"

I think you are missing a trailing ':' here, so your path is getting
merged together with whatever is already there (probably the path added
by the bbappend in meta-yocto, i.e., try

FILESEXTRAPATHS_prepend := "${THISDIR}/netbase-4.47:"


> SRC_URI_append  = "file://interfaces"

You don't need this; the base recipe already has this, simply modifying
the FILESEXTRAPATHS is enough.

> do_install_append () {
>         install -m 644 ${WORKDIR}/interfaces ${D}/${sysconfdir}/network/
> }

Similarly, you do not needs this either, the base do_install() method
already does this.

But if this interfaces file is for a specific machine, you might want to
consider putting your interfaces file into a machine specific location,
i.e.,

   netbase-4.47/<some machine>/interfaces

This will ensure the interfaces file is only used for that specific
machine (you do not need to make any other changes in the bb file, this
happens by some clever magic automatically); see how this is done in
meta/recipes-core/netbase for the various qemu machines.

Tomas


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

end of thread, other threads:[~2012-09-03 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-03 18:03 netbase_4.47.bbappend Raul Rosetto Munoz
2012-09-03 18:58 ` netbase_4.47.bbappend Tomas Frydrych

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.