Patchwork [meta-fsl-ppc,v2,5/6] udev-extraconf: add udev rules from netbase

login
register
mail settings
Submitter Ting Liu
Date March 8, 2013, 9:42 a.m.
Message ID <1362735743-11318-5-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/45707/
State Superseded
Delegated to: Otavio Salvador
Headers show

Comments

Ting Liu - March 8, 2013, 9:42 a.m.
From: Ting Liu <b28495@freescale.com>

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
 .../files/71-fsl-dpaa-persistent-networking.rules  |    0
 recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
 3 files changed, 10 insertions(+), 10 deletions(-)
 rename {recipes-append/netbase => recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules (100%)
Otavio Salvador - March 8, 2013, 1:38 p.m.
On Fri, Mar 8, 2013 at 6:42 AM,  <b28495@freescale.com> wrote:
> From: Ting Liu <b28495@freescale.com>
>
> Signed-off-by: Ting Liu <b28495@freescale.com>
> ---
>  recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
>  .../files/71-fsl-dpaa-persistent-networking.rules  |    0
>  recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
>  3 files changed, 10 insertions(+), 10 deletions(-)
>  rename {recipes-append/netbase => recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules (100%)
>
> diff --git a/recipes-append/netbase/netbase_5.0.bbappend b/recipes-append/netbase/netbase_5.0.bbappend
> index dc0fd0a..8445337 100644
> --- a/recipes-append/netbase/netbase_5.0.bbappend
> +++ b/recipes-append/netbase/netbase_5.0.bbappend
> @@ -1,10 +1,2 @@
> -FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
> +PRINC := "${@int(PRINC) + 1}"
>
> -SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
> -
> -do_install_append_fsl () {
> -       install -d ${D}${sysconfdir}/udev/rules.d/
> -       install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
> -}
> -
> -PR_fsl .= "+${DISTRO}"
> diff --git a/recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules b/recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
> similarity index 100%
> rename from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
> rename to recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
> diff --git a/recipes-core/udev/udev-extraconf_1.0.bbappend b/recipes-core/udev/udev-extraconf_1.0.bbappend
> index b3641a4..78394d1 100644
> --- a/recipes-core/udev/udev-extraconf_1.0.bbappend
> +++ b/recipes-core/udev/udev-extraconf_1.0.bbappend
> @@ -1,3 +1,11 @@
>  FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

This could be dropped if you move it to udev-extraconf directory.

> -PRINC := "${@int(PRINC) + 1}"
> +SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"

SRC_URI_append = " file://...

> +do_install_append () {
> +    install -d ${D}${sysconfdir}/udev/rules.d/
> +    install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
> +}
> +
> +PRINC := "${@int(PRINC) + 2}"
> +
> --
> 1.7.3.4
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
Ting Liu - March 9, 2013, 2:54 a.m.
> -----Original Message-----
> From: otavio.salvador@gmail.com [mailto:otavio.salvador@gmail.com] On
> Behalf Of Otavio Salvador
> Sent: Friday, March 08, 2013 9:38 PM
> To: Liu Ting-B28495
> Cc: meta-freescale@yoctoproject.org
> Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf:
> add udev rules from netbase
> 
> On Fri, Mar 8, 2013 at 6:42 AM,  <b28495@freescale.com> wrote:
> > From: Ting Liu <b28495@freescale.com>
> >
> > Signed-off-by: Ting Liu <b28495@freescale.com>
> > ---
> >  recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
> >  .../files/71-fsl-dpaa-persistent-networking.rules  |    0
> >  recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
> >  3 files changed, 10 insertions(+), 10 deletions(-)  rename
> > {recipes-append/netbase =>
> > recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules
> > (100%)
> >
> > diff --git a/recipes-append/netbase/netbase_5.0.bbappend
> > b/recipes-append/netbase/netbase_5.0.bbappend
> > index dc0fd0a..8445337 100644
> > --- a/recipes-append/netbase/netbase_5.0.bbappend
> > +++ b/recipes-append/netbase/netbase_5.0.bbappend
> > @@ -1,10 +1,2 @@
> > -FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
> > +PRINC := "${@int(PRINC) + 1}"
> >
> > -SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
> > -
> > -do_install_append_fsl () {
> > -       install -d ${D}${sysconfdir}/udev/rules.d/
> > -       install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-
> networking.rules ${D}${sysconfdir}/udev/rules.d
> > -}
> > -
> > -PR_fsl .= "+${DISTRO}"
> > diff --git
> > a/recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
> > b/recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
> > similarity index 100%
> > rename from
> > recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
> > rename to
> > recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
> > diff --git a/recipes-core/udev/udev-extraconf_1.0.bbappend
> > b/recipes-core/udev/udev-extraconf_1.0.bbappend
> > index b3641a4..78394d1 100644
> > --- a/recipes-core/udev/udev-extraconf_1.0.bbappend
> > +++ b/recipes-core/udev/udev-extraconf_1.0.bbappend
> > @@ -1,3 +1,11 @@
> >  FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> 
> This could be dropped if you move it to udev-extraconf directory.

Seems that udev-extraconf directory of the layer that bbappend exists is not in the list of searched paths:

Log:
WARNING: Failed to fetch URL file://72-fsl-dpaa-persistent-networking.rules, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://72-fsl-dpaa-persistent-networking.rules anywhere. The c were:
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/
    /home/jenkins/yocto-build/poky/build_t4240qds-64b_release/../sources
ERROR: Function failed: Fetcher failure for URL: 'file://72-fsl-dpaa-persistent-networking.rules'. Unable to fetch URL from any source.

> 
> > -PRINC := "${@int(PRINC) + 1}"
> > +SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"
> 
> SRC_URI_append = " file://...
> 
> > +do_install_append () {
> > +    install -d ${D}${sysconfdir}/udev/rules.d/
> > +    install -m 0644
> > +${WORKDIR}/71-fsl-dpaa-persistent-networking.rules
> > +${D}${sysconfdir}/udev/rules.d }
> > +
> > +PRINC := "${@int(PRINC) + 2}"
> > +
> > --
> > 1.7.3.4
> >
> >
> > _______________________________________________
> > meta-freescale mailing list
> > meta-freescale@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-freescale
> 
> 
> 
> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
Otavio Salvador - March 9, 2013, 12:02 p.m.
On Fri, Mar 8, 2013 at 11:54 PM, Liu Ting-B28495 <B28495@freescale.com> wrote:
>> -----Original Message-----
>> From: otavio.salvador@gmail.com [mailto:otavio.salvador@gmail.com] On
>> Behalf Of Otavio Salvador
>> Sent: Friday, March 08, 2013 9:38 PM
>> To: Liu Ting-B28495
>> Cc: meta-freescale@yoctoproject.org
>> Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf:
>> add udev rules from netbase
>>
>> On Fri, Mar 8, 2013 at 6:42 AM,  <b28495@freescale.com> wrote:
>> > From: Ting Liu <b28495@freescale.com>
>> >
>> > Signed-off-by: Ting Liu <b28495@freescale.com>
>> > ---
>> >  recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
>> >  .../files/71-fsl-dpaa-persistent-networking.rules  |    0
>> >  recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
>> >  3 files changed, 10 insertions(+), 10 deletions(-)  rename
>> > {recipes-append/netbase =>
>> > recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules
>> > (100%)
>> >
>> > diff --git a/recipes-append/netbase/netbase_5.0.bbappend
>> > b/recipes-append/netbase/netbase_5.0.bbappend
>> > index dc0fd0a..8445337 100644
>> > --- a/recipes-append/netbase/netbase_5.0.bbappend
>> > +++ b/recipes-append/netbase/netbase_5.0.bbappend
>> > @@ -1,10 +1,2 @@
>> > -FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
>> > +PRINC := "${@int(PRINC) + 1}"
>> >
>> > -SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
>> > -
>> > -do_install_append_fsl () {
>> > -       install -d ${D}${sysconfdir}/udev/rules.d/
>> > -       install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-
>> networking.rules ${D}${sysconfdir}/udev/rules.d
>> > -}
>> > -
>> > -PR_fsl .= "+${DISTRO}"
>> > diff --git
>> > a/recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
>> > b/recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
>> > similarity index 100%
>> > rename from
>> > recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
>> > rename to
>> > recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
>> > diff --git a/recipes-core/udev/udev-extraconf_1.0.bbappend
>> > b/recipes-core/udev/udev-extraconf_1.0.bbappend
>> > index b3641a4..78394d1 100644
>> > --- a/recipes-core/udev/udev-extraconf_1.0.bbappend
>> > +++ b/recipes-core/udev/udev-extraconf_1.0.bbappend
>> > @@ -1,3 +1,11 @@
>> >  FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>
>> This could be dropped if you move it to udev-extraconf directory.
>
> Seems that udev-extraconf directory of the layer that bbappend exists is not in the list of searched paths:
>
> Log:
> WARNING: Failed to fetch URL file://72-fsl-dpaa-persistent-networking.rules, attempting MIRRORS if available
> ERROR: Fetcher failure: Unable to find file file://72-fsl-dpaa-persistent-networking.rules anywhere. The c were:
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/allarch
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/poky
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/e6500-64b
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fslmachine
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/t4240
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fsl-networking
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/allarch
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/poky
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/e6500-64b
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fslmachine
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/t4240
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fsl-networking
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/allarch
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/poky
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/e6500-64b
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fslmachine
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/t4240
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fsl-networking
>     /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/
>     /home/jenkins/yocto-build/poky/build_t4240qds-64b_release/../sources
> ERROR: Function failed: Fetcher failure for URL: 'file://72-fsl-dpaa-persistent-networking.rules'. Unable to fetch URL from any source.

Indeed.

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" needs to be add in the
first patch, adding bbappend.

>> > -PRINC := "${@int(PRINC) + 1}"
>> > +SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"
>>
>> SRC_URI_append = " file://...
>>
>> > +do_install_append () {
>> > +    install -d ${D}${sysconfdir}/udev/rules.d/
>> > +    install -m 0644
>> > +${WORKDIR}/71-fsl-dpaa-persistent-networking.rules
>> > +${D}${sysconfdir}/udev/rules.d }
>> > +
>> > +PRINC := "${@int(PRINC) + 2}"
>> > +
>> > --
>> > 1.7.3.4
>> >
>> >
>> > _______________________________________________
>> > meta-freescale mailing list
>> > meta-freescale@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>>
>>
>> --
>> Otavio Salvador                             O.S. Systems
>> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
>> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
>
>



--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

Patch

diff --git a/recipes-append/netbase/netbase_5.0.bbappend b/recipes-append/netbase/netbase_5.0.bbappend
index dc0fd0a..8445337 100644
--- a/recipes-append/netbase/netbase_5.0.bbappend
+++ b/recipes-append/netbase/netbase_5.0.bbappend
@@ -1,10 +1,2 @@ 
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
-
-do_install_append_fsl () {
-	install -d ${D}${sysconfdir}/udev/rules.d/
-	install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
-}
-
-PR_fsl .= "+${DISTRO}"
diff --git a/recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules b/recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
similarity index 100%
rename from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
rename to recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
diff --git a/recipes-core/udev/udev-extraconf_1.0.bbappend b/recipes-core/udev/udev-extraconf_1.0.bbappend
index b3641a4..78394d1 100644
--- a/recipes-core/udev/udev-extraconf_1.0.bbappend
+++ b/recipes-core/udev/udev-extraconf_1.0.bbappend
@@ -1,3 +1,11 @@ 
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
-PRINC := "${@int(PRINC) + 1}"
+SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"
+
+do_install_append () {
+    install -d ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
+}
+
+PRINC := "${@int(PRINC) + 2}"
+