<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9964</bug_id>
          
          <creation_ts>2016-07-18 07:25:11 +0000</creation_ts>
          <short_desc>Suggested fleshing out of the do_compile documentation</short_desc>
          <delta_ts>2016-08-01 17:59:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>29 July 2016: IN PROGRESS REVIEW</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64087</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-18 07:25:11 +0000</bug_when>
    <thetext>Section &apos;8.1.3. do_compile&apos; is very sparse at the moment. I suggest extending it as follows to cover the default behavior and making it clearer that the working directory is ${B}:

  8.1.3. do_compile

  Compiles the source code. Runs with the current working directory set
  to ${B}.

  The default behavior of this task is to run &apos;oe_runmake&apos; if a makefile
  (&quot;Makefile&quot;, &quot;makefile&quot;, or &quot;GNUmakefile&quot;) is found, and doing nothing
  otherwise.



To also add some documentation for oe_runmake, the final sentence of &apos;7.4. base.bbclass&apos; could be extended from

  The class also contains some commonly used functions such as oe_runmake.

to

  The class also contains some commonly used functions such as
  &apos;oe_runmake&apos;, which runs &apos;make&apos; with the arguments specified in
  EXTRA_OEMAKE (in addition to the arguments passed directly to
  &apos;oe_runmake&apos;).



To make it easier to discover how a task gets its current working directory, the sentence

  The do_deploy[dirs] = &quot;${DEPLOYDIR} ${B}&quot; line creates ${DEPLOYDIR} and
  ${B} before the do_deploy task runs.

in &apos;4.3.3. Shared State&apos; could be extended to

  The do_deploy[dirs] = &quot;${DEPLOYDIR} ${B}&quot; line creates ${DEPLOYDIR} and
  ${B} before the do_deploy task runs, and also sets the current working
  directory of do_deploy to ${B}.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64112</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-18 18:49:20 +0000</bug_when>
    <thetext>Ulf, 

Thanks for helping to describe these more.  They are indeed very sparse.

Here is the change in the do_compile task section - http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#ref-tasks-compile

Here is the change in the base.bbclass section - http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#ref-classes-base

Here is the change in 4.3.3 &quot;Shared State&quot; - http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#shared-state

Let me know how they are.

thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64114</commentid>
    <comment_count>2</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-18 19:04:48 +0000</bug_when>
    <thetext>Looks good. Just one nit:

  The default behavior of this task is to run the oe_runmake task...

should be

  The default behavior of this task is to run the oe_runmake function..

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64115</commentid>
    <comment_count>3</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-18 19:09:19 +0000</bug_when>
    <thetext>I&apos;ll piggyback one slightly OCD nit in the glossary entry for B if it&apos;s okay:

  S = &quot;${WORKDIR}/${BP}/&quot;

should be

  S = &quot;${WORKDIR}/${BP}&quot;

to match the actual assignment in bitbake.conf. That&apos;s also the style I prefer.

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64128</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-18 20:33:18 +0000</bug_when>
    <thetext>No problems...

http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-B

I am going to close this bug to RESOLVED and set the flag to &quot;Done.&quot;  I am assuming we are good now. 

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64383</commentid>
    <comment_count>5</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-23 11:02:19 +0000</bug_when>
    <thetext>Found one small typo:

  The default behavior of this task is to run the oe_runmake task...

should be

  The default behavior of this task is to run the oe_runmake function...

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64384</commentid>
    <comment_count>6</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-23 11:02:50 +0000</bug_when>
    <thetext>Reopening for visibility.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64689</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-29 22:08:52 +0000</bug_when>
    <thetext>Ulf, 

Sorry... I don&apos;t know how I missed that one in Comment 2.  I fixed it.  See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#ref-tasks-compile.  

Setting to IN PROGRESS REVIEW so you can verify.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64697</commentid>
    <comment_count>8</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-30 08:59:32 +0000</bug_when>
    <thetext>Looks good!

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64734</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-01 17:59:07 +0000</bug_when>
    <thetext>Setting doc flag to &quot;done&quot;.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>