All of lore.kernel.org
 help / color / mirror / Atom feed
* How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?
@ 2016-05-31 15:03 S.Jaritz
  2016-06-01  7:13 ` Robert Berger
  0 siblings, 1 reply; 4+ messages in thread
From: S.Jaritz @ 2016-05-31 15:03 UTC (permalink / raw)
  To: yocto

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

Hej,

I am looking for an example where is shown how to include an own library 
into the toolchain.

Let's call the library "myLib". For it I created an recipe "myLib.bb" and 
added:

    BBCLASSEXTEND = "native nativesdk"

In my "local.conf" I added:

    IMAGE_INSTALL_append = " myLib"

When building the SDK by:

    $ bitbake myTarget -c populate_sdk

It produces a installer for the SDK and two manifest files. "myLib" is 
only included at the target manifest and not on the host. How can I 
include myLib on the host system?

The idea is, that a other person can build software on his system without 
the Yocto system. Only by using the toolchain he can generate binaries, 
which can be transferred and executed at the evalboard.


Regards!

PS: I put the question on stackoverflow: 
http://stackoverflow.com/questions/37548851/how-to-include-a-own-libary-into-the-toolchainsdk-for-an-embeeded-linux-genera


------------------------------------------------------------
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: 3110 bytes --]

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

* Re: How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?
  2016-05-31 15:03 How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto? S.Jaritz
@ 2016-06-01  7:13 ` Robert Berger
  2016-06-01  7:47   ` Antwort: " S.Jaritz
  2016-06-01  8:06   ` [Solved] " S.Jaritz
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Berger @ 2016-06-01  7:13 UTC (permalink / raw)
  To: yocto

Hi,

On 05/31/2016 06:03 PM, S.Jaritz@esa-grimma.de
wrote:> Hej,
>
> I am looking for an example where is shown how to include an own library
> into the toolchain.
>
> Let's call the library "myLib". For it I created an recipe "myLib.bb"
> and added:
>
>     BBCLASSEXTEND = "native nativesdk"

Like this you can build a myLib-native (for your host - x86) version and
it should be added as an x86 library to your nativesdk.

see:

http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#var-BBCLASSEXTEND

>
> In my "local.conf" I added:
>
>     IMAGE_INSTALL_append = " myLib"
>
> When building the SDK by:
>
>     $ bitbake myTarget -c populate_sdk
>
> It produces a installer for the SDK and two manifest files. "myLib" is
> only included at the target manifest and not on the host. How can I
> include myLib on the host system?

Do you want myLib-native?

>
> The idea is, that a other person can build software on his system
> without the Yocto system. Only by using the toolchain he can generate
> binaries, which can be transferred and executed at the evalboard.

I guess you want something else. You want e.g. the ARM library myLib in
your sysroot plus maybe header files.

What happens if you create a recipe like a testcase for your library
which DEPENDS_append = " myLib" and then you IMAGE_INSTALL_append = "
myLib testmyLib", rebuild the image and populate_sdk?

>
>
> Regards!

Regards,

Robert

>
> PS: I put the question on stackoverflow:
>
http://stackoverflow.com/questions/37548851/how-to-include-a-own-libary-into-the-toolchainsdk-for-an-embeeded-linux-genera
>
>
>
> ------------------------------------------------------------
> 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.
>
>
> --
>

...To go faster, slow down. Everybody who knows about orbital mechanics
understands that.- Scott Cherf

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




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

* Antwort: Re: How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?
  2016-06-01  7:13 ` Robert Berger
@ 2016-06-01  7:47   ` S.Jaritz
  2016-06-01  8:06   ` [Solved] " S.Jaritz
  1 sibling, 0 replies; 4+ messages in thread
From: S.Jaritz @ 2016-06-01  7:47 UTC (permalink / raw)
  To: Robert Berger; +Cc: yocto

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

Thanks for the reply

Like you thought - I want to include the lib + headers.

I included the "myLib" via 

IMAGE_INSTALL_append = " myLib"

and have a project

IMAGE_INSTALL_append = " myProject"

which has in it's recipe

DEPENDS = "myLib"

In my eyes this should be enough.

When looking into the toolchain I found:

myLib.h
myLib.c

but not

libmyLib.so
libmyLib.so.0
libmyLib.so.0.0.0.0


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.



Von:    Robert Berger <gmane@reliableembeddedsystems.com>
An:     yocto@yoctoproject.org
Datum:  01.06.2016 09:15
Betreff:        Re: [yocto] How to include a own libary into the 
toolchain(SDK) for an embeeded Linux generated by Yocto?
Gesendet von:   yocto-bounces@yoctoproject.org



Hi,

On 05/31/2016 06:03 PM, S.Jaritz@esa-grimma.de
wrote:> Hej,
>
> I am looking for an example where is shown how to include an own library
> into the toolchain.
>
> Let's call the library "myLib". For it I created an recipe "myLib.bb"
> and added:
>
>     BBCLASSEXTEND = "native nativesdk"

Like this you can build a myLib-native (for your host - x86) version and
it should be added as an x86 library to your nativesdk.

see:

http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#var-BBCLASSEXTEND


>
> In my "local.conf" I added:
>
>     IMAGE_INSTALL_append = " myLib"
>
> When building the SDK by:
>
>     $ bitbake myTarget -c populate_sdk
>
> It produces a installer for the SDK and two manifest files. "myLib" is
> only included at the target manifest and not on the host. How can I
> include myLib on the host system?

Do you want myLib-native?

>
> The idea is, that a other person can build software on his system
> without the Yocto system. Only by using the toolchain he can generate
> binaries, which can be transferred and executed at the evalboard.

I guess you want something else. You want e.g. the ARM library myLib in
your sysroot plus maybe header files.

What happens if you create a recipe like a testcase for your library
which DEPENDS_append = " myLib" and then you IMAGE_INSTALL_append = "
myLib testmyLib", rebuild the image and populate_sdk?

>
>
> Regards!

Regards,

Robert

>
> PS: I put the question on stackoverflow:
>
http://stackoverflow.com/questions/37548851/how-to-include-a-own-libary-into-the-toolchainsdk-for-an-embeeded-linux-genera

>
>
>
> ------------------------------------------------------------
> 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.
>
>
> --
>

...To go faster, slow down. Everybody who knows about orbital mechanics
understands that.- Scott Cherf

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1


-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


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

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

* [Solved] Antwort: Re: How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?
  2016-06-01  7:13 ` Robert Berger
  2016-06-01  7:47   ` Antwort: " S.Jaritz
@ 2016-06-01  8:06   ` S.Jaritz
  1 sibling, 0 replies; 4+ messages in thread
From: S.Jaritz @ 2016-06-01  8:06 UTC (permalink / raw)
  To: Robert Berger; +Cc: yocto

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

Hej

Problem solved! It worked like described by Rebert and on Stack Overflow.

Thanks for the help

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.



Von:    Robert Berger <gmane@reliableembeddedsystems.com>
An:     yocto@yoctoproject.org
Datum:  01.06.2016 09:15
Betreff:        Re: [yocto] How to include a own libary into the 
toolchain(SDK) for an embeeded Linux generated by Yocto?
Gesendet von:   yocto-bounces@yoctoproject.org



Hi,

On 05/31/2016 06:03 PM, S.Jaritz@esa-grimma.de
wrote:> Hej,
>
> I am looking for an example where is shown how to include an own library
> into the toolchain.
>
> Let's call the library "myLib". For it I created an recipe "myLib.bb"
> and added:
>
>     BBCLASSEXTEND = "native nativesdk"

Like this you can build a myLib-native (for your host - x86) version and
it should be added as an x86 library to your nativesdk.

see:

http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#var-BBCLASSEXTEND


>
> In my "local.conf" I added:
>
>     IMAGE_INSTALL_append = " myLib"
>
> When building the SDK by:
>
>     $ bitbake myTarget -c populate_sdk
>
> It produces a installer for the SDK and two manifest files. "myLib" is
> only included at the target manifest and not on the host. How can I
> include myLib on the host system?

Do you want myLib-native?

>
> The idea is, that a other person can build software on his system
> without the Yocto system. Only by using the toolchain he can generate
> binaries, which can be transferred and executed at the evalboard.

I guess you want something else. You want e.g. the ARM library myLib in
your sysroot plus maybe header files.

What happens if you create a recipe like a testcase for your library
which DEPENDS_append = " myLib" and then you IMAGE_INSTALL_append = "
myLib testmyLib", rebuild the image and populate_sdk?

>
>
> Regards!

Regards,

Robert

>
> PS: I put the question on stackoverflow:
>
http://stackoverflow.com/questions/37548851/how-to-include-a-own-libary-into-the-toolchainsdk-for-an-embeeded-linux-genera

>
>
>
> ------------------------------------------------------------
> 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.
>
>
> --
>

...To go faster, slow down. Everybody who knows about orbital mechanics
understands that.- Scott Cherf

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1


-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


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

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

end of thread, other threads:[~2016-06-01  8:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-31 15:03 How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto? S.Jaritz
2016-06-01  7:13 ` Robert Berger
2016-06-01  7:47   ` Antwort: " S.Jaritz
2016-06-01  8:06   ` [Solved] " S.Jaritz

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.