<p dir="ltr"><br>
On Aug 9, 2015 9:21 AM, &quot;Paul Eggleton&quot; &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Saturday 08 August 2015 11:54:45 Khem Raj wrote:<br>
&gt; &gt; &gt; On Aug 7, 2015, at 12:54 PM, Paul Eggleton &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt;<br>
&gt; &gt; &gt; wrote:&gt;<br>
&gt; &gt; &gt; On Friday 07 August 2015 12:26:56 Khem Raj wrote:<br>
&gt; &gt; &gt;&gt;&gt; On Aug 7, 2015, at 2:51 AM, Paul Eggleton<br>
&gt; &gt; &gt;&gt;&gt; &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt;<br>
&gt; &gt; &gt;&gt;&gt; wrote:&gt;<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; On Thursday 06 August 2015 19:52:28 Khem Raj wrote:<br>
&gt; &gt; &gt;&gt;&gt;&gt; On Thu, Aug 6, 2015 at 2:25 AM, Paul Eggleton<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt; wrote:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; On Thursday 06 August 2015 12:12:35 Alexander Kanavin wrote:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; On 08/06/2015 12:06 PM, Amarnath Valluri wrote:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt; Added new patch that fixes the memory leak that was introduced in<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;&gt; mkdosfs-dir.patch.<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; You should update the original patch then, not pile additional<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; patches<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; on top. The least painful way is:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; 1) unpack the sources (manually from tarball, or using bitbake -c<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; unpack)<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; 2) &#39;git init; git add *; git commit&#39; to create an git repository from<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; the sources<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; 3) apply the patch that needs fixing, then do the fix<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; 4) make a git commit, then produce a patch using git format-patch,<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; then<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; move the new patch back to the recipe directory and update the recipe<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; 5) build the recipe to make sure it still builds<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;&gt; 6) make a git commit with the recipe update, and submit it here :)<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; On the contrary - the much less painful way (as of fido) is to use<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; devtool:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; 1) Extract source and set the build system up to use it:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;  devtool modify dosfstools -x ~/projects/dosfstools<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; 2) Make whatever changes you want to in the git tree that has been set<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; up<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; in the specified path<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; 3) Build the recipe (as you would normally) to make sure it still<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; builds<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; 4) Write the modified/added commits as patches back to the recipe:<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;   devtool update-recipe dosfstools<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; 5) Make a git commit with the recipe update, and submit it here :)<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; I&#39;d really like people to start using devtool for this kind of thing.<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; If<br>
&gt; &gt; &gt;&gt;&gt;&gt;&gt; it&#39;s not working for some reason please do let me know.<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; This assumes either we use OE-Core or poky, I dont get it to work with<br>
&gt; &gt; &gt;&gt;&gt;&gt; angstrom out of box<br>
&gt; &gt; &gt;&gt;&gt;&gt; what am I missing<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Well, whatever error / problem you are experiencing seems to be missing<br>
&gt; &gt; &gt;&gt;&gt; at<br>
&gt; &gt; &gt;&gt;&gt; least ;)<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; devtool modify dosfstools -x ~/projects/dosfstools<br>
&gt; &gt; &gt;&gt; ERROR: This script can only be run after initialising the build<br>
&gt; &gt; &gt;&gt; environment<br>
&gt; &gt; &gt;&gt; (e.g. by using oe-init-build-env)<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; so is it must now to use the setup script ? or can be extract some needed<br>
&gt; &gt; &gt;&gt; setup from it to let it work with setups not using the init script<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Well it needs to be able to run bitbake internally (directly and using<br>
&gt; &gt; &gt; tinfoil), hence the need to have the environment set up to do so. I don&#39;t<br>
&gt; &gt; &gt; really see a way around that.<br>
&gt; &gt;<br>
&gt; &gt; Then limited use of  devtool should be documented as available<br>
&gt;<br>
&gt; How is this limited? It operates under the same conditions as bitbake itself<br>
&gt; does.</p>
<p dir="ltr">Your last email indicated as if it always needs internal build environment. If that&#39;s not the case then it&#39;s what I was requesting for the settings that are required to execute it provided bitbake is in path and is building fine but it&#39;s not using the settings provided by setup environment script<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Paul<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Paul Eggleton<br>
&gt; Intel Open Source Technology Centre<br>
</p>