Patchwork opkg-utils: extend to nativesdk

login
register
mail settings
Submitter Jonas Danielsson
Date April 18, 2012, 4:12 p.m.
Message ID <1334765562-27101-1-git-send-email-jonas.danielsson@lundinova.se>
Download mbox | patch
Permalink /patch/26135/
State New
Headers show

Comments

Jonas Danielsson - April 18, 2012, 4:12 p.m.
Signed-off-by: Jonas Danielsson <jonas.danielsson@lundinova.se>
---
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Richard Purdie - April 18, 2012, 4:56 p.m.
On Wed, 2012-04-18 at 18:12 +0200, Jonas Danielsson wrote:
> Signed-off-by: Jonas Danielsson <jonas.danielsson@lundinova.se>
> ---
>  meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> index 4fe4038..eb42eae 100644
> --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
>                      file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
>  RDEPENDS_${PN} = "python"
>  RDEPENDS_${PN}_virtclass-native = ""
> +RDEPENDS_${PN}_virtclass-nativesdk = "python-nativesdk"

Doesn't this happen automatically?

>  SRCREV = "16665959c330b5958c0f0f4624a9ca7f823f98de"
>  PV = "0.1.8+git${SRCPV}"
>  PR = "r1"
> @@ -27,5 +28,5 @@ do_install() {
>  	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
>  }
>  
> -BBCLASSEXTEND = "native"
> +BBCLASSEXTEND = "native nativesdk"
>  TARGET_CC_ARCH += "${LDFLAGS}"

Cheers,

Richard
Jonas Danielsson - April 18, 2012, 8:27 p.m.
On Wed, Apr 18, 2012 at 05:56:41PM +0100, Richard Purdie wrote:
> On Wed, 2012-04-18 at 18:12 +0200, Jonas Danielsson wrote:
> > Signed-off-by: Jonas Danielsson <jonas.danielsson@lundinova.se>
> > ---
> >  meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> > index 4fe4038..eb42eae 100644
> > --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> > +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> > @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
> >                      file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
> >  RDEPENDS_${PN} = "python"
> >  RDEPENDS_${PN}_virtclass-native = ""
> > +RDEPENDS_${PN}_virtclass-nativesdk = "python-nativesdk"
>
> Doesn't this happen automatically?
>

I am not a terribly experienced oe developer so I had an hard time figuring
that out :) Maybe someone here can help me with it.

When I did not have it and did 'bitbake -g opkg-utils-nativesdk' then
used grep on the resulting pn-depends.dot file I got:
"opkg-utils-nativesdk" -> "python" [style=dashed]

And doing the same procedure without it I got:
"opkg-utils-nativesdk" -> "python-nativesdk" [style=dashed]

But my toolchain works either way because python-nativesdk gets in
through: "gdb-cross-canadian-arm" -> "python-nativesdk"

So I'm not sure, is it needed or not?

> >  SRCREV = "16665959c330b5958c0f0f4624a9ca7f823f98de"
> >  PV = "0.1.8+git${SRCPV}"
> >  PR = "r1"
> > @@ -27,5 +28,5 @@ do_install() {
> >     oe_runmake PREFIX=${prefix} DESTDIR=${D} install
> >  }
> >
> > -BBCLASSEXTEND = "native"
> > +BBCLASSEXTEND = "native nativesdk"
> >  TARGET_CC_ARCH += "${LDFLAGS}"
>
> Cheers,
>
> Richard
>

Thanks!
Jonas

>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

Patch

diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 4fe4038..eb42eae 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -6,6 +6,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                     file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
 RDEPENDS_${PN} = "python"
 RDEPENDS_${PN}_virtclass-native = ""
+RDEPENDS_${PN}_virtclass-nativesdk = "python-nativesdk"
 SRCREV = "16665959c330b5958c0f0f4624a9ca7f823f98de"
 PV = "0.1.8+git${SRCPV}"
 PR = "r1"
@@ -27,5 +28,5 @@  do_install() {
 	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
 }
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
 TARGET_CC_ARCH += "${LDFLAGS}"