[yocto] How to generate a debug version of a single application and deploy it into the image?

S.Jaritz at esa-grimma.de S.Jaritz at esa-grimma.de
Tue Aug 16 23:49:07 PDT 2016


Hej

Some software can be only tested on the final system. For that it would be 
usefull to start with a debug version of that app and change it later to 
release.

In my case I have a software which do logging. The amount of the logs 
depends on type of the build (Release skips all debug messages). Let's 
assume that my recipe for the software(myApp) is called myApp.bb. It is 
downloaded from an external git source and build through cmake.

Some idea how to do that?

Below the pseudo recipe as a starting point:
### myApp.bb ###
SUMMARY = "my App"
SECTION = "my"
LICENSE = "CLOSED"

inherit cmake

DEPENDS = "libconfig libg3log"

SRCREV = "${AUTOREV}"
SRC_URI = "gitsm://myGitSrv/myApp;protocol=http;branch=develop"

PVBASE := "${PV}"
PV = "${PVBASE}.${SRCPV}"

S = "${WORKDIR}/git/"

BBCLASSEXTEND = "native nativesdk"
################

Regads!

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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160817/abbce332/attachment.html>


More information about the yocto mailing list