<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hello Khem,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Long-wait for any feedback !!!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black">Mit freundlichen Grüßen / Best regards
<br>
<br>
<b>Rajendran Vignesh<br>
RBEI/ECF33<br>
</b><br>
Tel. &#43;91 422 67-65103 </span><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black"><br>
<br>
</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Khem Raj [mailto:raj.khem@gmail.com]
<br>
<b>Sent:</b> Friday, July 06, 2018 10:21 AM<br>
<b>To:</b> Vignesh Rajendran (RBEI/ECF3) &lt;Vignesh.Rajendran@in.bosch.com&gt;<br>
<b>Cc:</b> Patches and discussions about the oe-core layer &lt;openembedded-core@lists.openembedded.org&gt;; Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;<br>
<b>Subject:</b> Re: [OE-core] [meta-oe][PATCH] package.bbclass: provide debug sources in externalsrc -dbg packages<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Yes, you can try that&nbsp;<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Jul 5, 2018 at 9:29 PM Vignesh Rajendran (RBEI/ECF3) &lt;<a href="mailto:Vignesh.Rajendran@in.bosch.com">Vignesh.Rajendran@in.bosch.com</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hello Khem,<br>
<br>
Can you clarify your idea and my question?<br>
<br>
Mit freundlichen Grüßen / Best regards<br>
<br>
Rajendran Vignesh<br>
RBEI/ECF33&nbsp; <br>
<br>
Tel. &#43;91 422 67-65103 <br>
<br>
<br>
-----Original Message-----<br>
From: Vignesh Rajendran (RBEI/ECF3) <br>
Sent: Tuesday, June 19, 2018 10:24 AM<br>
To: 'Khem Raj' &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;; Paul Eggleton &lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;<br>
Cc: Patches and discussions about the oe-core layer &lt;<a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a>&gt;<br>
Subject: RE: [OE-core] [meta-oe][PATCH] package.bbclass: provide debug sources in externalsrc -dbg packages<br>
<br>
Hello Khem,<br>
<br>
&gt;&gt; perhaps setting DEBUG_PREFIX_MAP relative to S instead of WORKDIR is<br>
&gt;&gt; going to take care of this<br>
<br>
Do you mean to change it at bitbake.conf ?<br>
<br>
Mit freundlichen Grüßen / Best regards<br>
<br>
Rajendran Vignesh<br>
RBEI/ECF33&nbsp; <br>
<br>
Tel. &#43;91 422 67-65103 <br>
<br>
<br>
-----Original Message-----<br>
From: Khem Raj [mailto:<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>]
<br>
Sent: Monday, June 18, 2018 11:13 PM<br>
To: Paul Eggleton &lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;<br>
Cc: Vignesh Rajendran (RBEI/ECF3) &lt;<a href="mailto:Vignesh.Rajendran@in.bosch.com" target="_blank">Vignesh.Rajendran@in.bosch.com</a>&gt;; Patches and discussions about the oe-core layer &lt;<a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a>&gt;<br>
Subject: Re: [OE-core] [meta-oe][PATCH] package.bbclass: provide debug sources in externalsrc -dbg packages<br>
<br>
On Sun, May 20, 2018 at 3:26 PM Paul Eggleton<br>
&lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Vignesh,<br>
&gt;<br>
&gt; Thanks for the patch, a question below.<br>
&gt;<br>
&gt; On Thursday, 17 May 2018 5:50:00 PM NZST Vignesh Rajendran wrote:<br>
&gt; &gt; The recipes which are using externalsrc method doesn't contain the<br>
&gt; &gt; debug sources in their -dbg packages.<br>
&gt; &gt;<br>
&gt; &gt; Add a handling in copydebugsources function to copy the debugsources for<br>
&gt; &gt; externalsrc -dbg packages.<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Vignesh Rajendran &lt;<a href="mailto:vignesh.rajendran@in.bosch.com" target="_blank">vignesh.rajendran@in.bosch.com</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt;&nbsp; meta/classes/externalsrc.bbclass |&nbsp; 3 &#43;&#43;&#43;<br>
&gt; &gt;&nbsp; meta/classes/package.bbclass&nbsp; &nbsp; &nbsp;| 12 &#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;--<br>
&gt; &gt;&nbsp; 2 files changed, 13 insertions(&#43;), 2 deletions(-)<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass<br>
&gt; &gt; index c9f5cf7..135670d 100644<br>
&gt; &gt; --- a/meta/classes/externalsrc.bbclass<br>
&gt; &gt; &#43;&#43;&#43; b/meta/classes/externalsrc.bbclass<br>
&gt; &gt; @@ -129,6 &#43;129,9 @@ python () {<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d.setVar('CONFIGURESTAMPFILE', configstamp)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d.setVar('STAMP', '${STAMPS_DIR}/work-shared/${PN}/${EXTENDPE}${PV}-${PR}')<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d.setVar('STAMPCLEAN', '${STAMPS_DIR}/work-shared/${PN}/*-*')<br>
&gt; &gt; &#43;<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp;# set DEBUG_PREFIX_MAP to external source path<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp;d.appendVar(&quot;DEBUG_PREFIX_MAP&quot;, &quot;-fdebug-prefix-map=${EXTERNALSRC}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}&quot;)<br>
&gt; &gt;&nbsp; }<br>
&gt; &gt;<br>
&gt; &gt;&nbsp; python externalsrc_configure_prefunc() {<br>
&gt; &gt; diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass<br>
&gt; &gt; index edeffa9..f071a2e 100644<br>
&gt; &gt; --- a/meta/classes/package.bbclass<br>
&gt; &gt; &#43;&#43;&#43; b/meta/classes/package.bbclass<br>
&gt; &gt; @@ -420,6 &#43;420,7 @@ def copydebugsources(debugsrcdir, d):<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workdir = d.getVar(&quot;WORKDIR&quot;)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workparentdir = os.path.dirname(os.path.dirname(workdir))<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; workbasedir = os.path.basename(os.path.dirname(workdir)) &#43; &quot;/&quot; &#43; os.path.basename(workdir)<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; externalsrc = d.getVar('EXTERNALSRC', True)<br>
&gt; &gt;<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # If build path exists in sourcefile, it means toolchain did not use<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # -fdebug-prefix-map to compile<br>
&gt; &gt; @@ -444,9 &#43;445,16 @@ def copydebugsources(debugsrcdir, d):<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processdebugsrc &#43;= &quot;fgrep -zw '%s' | &quot;<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Remove prefix in the source paths<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processdebugsrc &#43;= &quot;sed 's#%s##g' | &quot;<br>
&gt; &gt; -&nbsp; &nbsp; &nbsp; &nbsp; processdebugsrc &#43;= &quot;(cd '%s' ; cpio -pd0mlL --no-preserve-owner '%s%s' 2&gt;/dev/null)&quot;<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; # handle external sources to provide sources in -dbg packages<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; if externalsrc:<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localsrc_prefix = &quot;/usr/src/debug/&quot;<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processdebugsrc &#43;= &quot;sed 's#%s/##g' | &quot;<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processdebugsrc &#43;= &quot;(cd '%s' ; cpio -pd0mlL --no-preserve-owner '%s%s/%s' 2&gt;/dev/null)&quot;<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd = processdebugsrc % (sourcefile, workbasedir, localsrc_prefix, workbasedir, externalsrc, dvar, debugsrcdir, workbasedir)<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; else:<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processdebugsrc &#43;= &quot;(cd '%s' ; cpio -pd0mlL --no-preserve-owner '%s%s' 2&gt;/dev/null)&quot;<br>
&gt; &gt; &#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd = processdebugsrc % (sourcefile, workbasedir, localsrc_prefix, workparentdir, dvar, debugsrcdir)<br>
&gt; &gt;<br>
&gt; &gt; -&nbsp; &nbsp; &nbsp; &nbsp; cmd = processdebugsrc % (sourcefile, workbasedir, localsrc_prefix, workparentdir, dvar, debugsrcdir)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (retval, output) = oe.utils.getstatusoutput(cmd)<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Can &quot;fail&quot; if internal headers/transient sources are attempted<br>
&gt; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #if retval:<br>
&gt; &gt;<br>
&gt;<br>
&gt; Is there a way we can fix this without adding a reference to externalsrc in<br>
&gt; package.bbclass?<br>
&gt;<br>
<br>
perhaps setting DEBUG_PREFIX_MAP relative to S instead of WORKDIR is<br>
going to take care of this<br>
<br>
&gt; Cheers,<br>
&gt; Paul<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Paul Eggleton<br>
&gt; Intel Open Source Technology Centre<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">
http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>