All of lore.kernel.org
 help / color / mirror / Atom feed
* How can I set a recipe that its binaries become available at cross-compile time?
@ 2016-05-23 13:37 S.Jaritz
  2016-05-23 13:56 ` Mike Looijmans
  2016-05-23 14:23 ` Jussi Kukkonen
  0 siblings, 2 replies; 3+ messages in thread
From: S.Jaritz @ 2016-05-23 13:37 UTC (permalink / raw)
  To: yocto

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

Hej

I a cmake based application, some code generation via dbusxx-xml2cpp. It 
is provided by the dbuss-c++ lib. A recipe can be found under:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-ivi/tree/meta-ivi-demo/recipes-extended/dbus-c++?id=b90c2a20744e1e82b2169a88e68d7677bec907b6

It working and it's compiling & linking, "dbusxx-xml2cpp" is included at 
the native build.

How can I set a recipe that its binaries become available at cross-compile 
time?

Best regards!

Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz@esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.

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

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

* Re: How can I set a recipe that its binaries become available at cross-compile time?
  2016-05-23 13:37 How can I set a recipe that its binaries become available at cross-compile time? S.Jaritz
@ 2016-05-23 13:56 ` Mike Looijmans
  2016-05-23 14:23 ` Jussi Kukkonen
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Looijmans @ 2016-05-23 13:56 UTC (permalink / raw)
  To: S.Jaritz, yocto

On 23-05-16 15:37, S.Jaritz@esa-grimma.de wrote:
> Hej
>
> I a cmake based application, some code generation via dbusxx-xml2cpp. It is
> provided by the dbuss-c++ lib. A recipe can be found under:
>
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-ivi/tree/meta-ivi-demo/recipes-extended/dbus-c++?id=b90c2a20744e1e82b2169a88e68d7677bec907b6
>
>
> It working and it's compiling & linking, "dbusxx-xml2cpp" is included at the
> native build.
>
> How can I set a recipe that its binaries become available at cross-compile time?

Simply adding the following to a recipe should make the command available in 
the PATH:

DEPENDS += "dbus-c++-native"

(though your moving of the binary into a "dbg" package might disturb that. I'd 
create a "utils" package for it)


Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







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

* Re: How can I set a recipe that its binaries become available at cross-compile time?
  2016-05-23 13:37 How can I set a recipe that its binaries become available at cross-compile time? S.Jaritz
  2016-05-23 13:56 ` Mike Looijmans
@ 2016-05-23 14:23 ` Jussi Kukkonen
  1 sibling, 0 replies; 3+ messages in thread
From: Jussi Kukkonen @ 2016-05-23 14:23 UTC (permalink / raw)
  To: S.Jaritz; +Cc: Yocto Project

On 23 May 2016 at 16:37,  <S.Jaritz@esa-grimma.de> wrote:
> Hej
>
> I a cmake based application, some code generation via dbusxx-xml2cpp. It is
> provided by the dbuss-c++ lib. A recipe can be found under:
>
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-ivi/tree/meta-ivi-demo/recipes-extended/dbus-c++?id=b90c2a20744e1e82b2169a88e68d7677bec907b6

You shouldn't need a separate native recipe: 'BBCLASSEXTEND =
"native"' in the main recipe should work.

> It working and it's compiling & linking, "dbusxx-xml2cpp" is included at the
> native build.
>
> How can I set a recipe that its binaries become available at cross-compile
> time?

If dbus-c++ installs the binaries properly and another recipe depends
on dbus-c++-native then the binaries should be in the native sysroot
during the other recipes build. As an example see dbus-glib and
connman-gnome in oe-core: dbus-glib-native provides dbus-binding-tool
which connman-gnome uses during build.

HTH,
  Jussi


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

end of thread, other threads:[~2016-05-24  2:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23 13:37 How can I set a recipe that its binaries become available at cross-compile time? S.Jaritz
2016-05-23 13:56 ` Mike Looijmans
2016-05-23 14:23 ` Jussi Kukkonen

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.