<div dir="ltr">What do you mean by patches not being applied correctly? Â temp/log.do_patch has the output from patch so that might show that you've a patch that applies with lots of fuzz and is applied incorrectly.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 November 2017 at 11:46, Alan Martinovic <span dir="ltr"><<a href="mailto:alan.martinovic@senic.com" target="_blank">alan.martinovic@senic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I see, so I can't use the devshell to debug why the patch hasn't been correctly applied.  <div><br></div><div>The answer you gave help for debugging actual build and configure problems.<br></div><div>Debugging patching seems to be out scope for this thread.<br>Will start a new one.</div><div><div class="h5"><div><div><span style="font-size:12.8px"><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 2, 2017 at 12:13 PM, Burton, Ross <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The patching is done by a bbclass (patch.bbclass) and helper modules (meta/oe/lib/patch.py), so you can't execute it like a shell task (such as do_compile).<span class="m_-1619227811431477559m_-9066818731552652358HOEnZb"><font color="#888888"><div><br></div><div>Ross</div></font></span></div><div class="m_-1619227811431477559m_-9066818731552652358HOEnZb"><div class="m_-1619227811431477559m_-9066818731552652358h5"><div class="gmail_extra"><br><div class="gmail_quote">On 2 November 2017 at 11:05, Alan Martinovic <span dir="ltr"><<a href="mailto:alan.martinovic@senic.com" target="_blank">alan.martinovic@senic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the suggestions<div>Am currently implementing both of them and am trying to understand how the patching is done.</div><div><br></div><div>In the temp directory I can see all the tasks. </div><div>For some reasons the patch wasn't applied correctly and I'm debugging why.</div><div><br></div><div>I have patches from before which are being correctly applied, one of them being "0001-sun8i-configs-Add-CONFIG<wbr>_BOOTCOUNT_LIMIT-ENV-for-men.p<wbr>atch".</div><div>Am using that one just as a reference for this example.</div><div>I want to see the steps done to apply the patch so I do:</div><div><br></div><div>  Â  temp$ grep -r 0001-sun8i-configs *<br></div><div>  Â  temp$ grep -r quilt *</div><div><br></div><div>I am expecting to see some commands related to the patching process in one of the run scripts.</div><div>For example,  "quilt" followed by some arguments or "0001-sun8i-configs-Add-CONFIG<wbr>_BOOTCOUNT_LIMIT-ENV-for-men.p<wbr>atch" being applied </div><div>by some other tool instead of quilt. </div><div><br></div><div>I only end up with some findings in the log files (log.do_fetch, log.do_unpack which don't tell me much). </div><div><br></div><div><br></div><div>Where are the steps that apply the patches located? <br></div><div><br></div><div>Be Well :)</div><div>Alan</div><div><br></div><div><br></div><div><br><div><br></div><div>I've gotten to the </div></div></div><div class="m_-1619227811431477559m_-9066818731552652358m_-1287795589794992332HOEnZb"><div class="m_-1619227811431477559m_-9066818731552652358m_-1287795589794992332h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 1, 2017 at 8:05 PM, Alex Kiernan <span dir="ltr"><<a href="mailto:alex.kiernan@hivehome.com" target="_blank">alex.kiernan@hivehome.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On 1 November 2017 at 17:38, Alan Martinovic <span dir="ltr"><<a href="mailto:alan.martinovic@senic.com" target="_blank">alan.martinovic@senic.com</a>></span> wrote:<br></span><div><div class="m_-1619227811431477559m_-9066818731552652358m_-1287795589794992332m_-6888141748760329520h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm just upgrading to pyro and have some issues with u-boot-fw-utils.<br>
<br>
The error fails at do_compile stage which looks like this:<br>
<br>
  Â  do_compile () {<br>
  Â  Â  Â  Â  Â  oe_runmake ${UBOOT_MACHINE}<br>
  Â  Â  Â  Â  Â  oe_runmake env<br>
  Â  }<br>
<br>
<br>
The error is:<br>
<br>
Log data follows:<br>
| DEBUG: Executing shell function do_compile<br>
| NOTE: make -j 16 CROSS_COMPILE=arm-senic-linux-<wbr>gnueabi-<br>
CC=arm-senic-linux-gnueabi-  Â  Â  Â gcc  -march=armv7ve -mfpu=neon-vfpv4<br>
 -mfloat-abi=hard -mcpu=cortex-a7<br>
--sysroot=/home/alan/senic-os-<wbr>update/build/tmp-glibc/work/se<wbr>nic_hub_beta-senic-linux-gnuea<wbr>bi/u-boot-fw-utils-senic/v2017<wbr>.03+gitAUTOINC+5233f17333-r0/r<wbr>ecipe-sysroot<br>
 -O2 -pipe -g -feliminate-unused-debug-types<br>
-fdebug-prefix-map=/home/alan/<wbr>senic-os-update/build/tmp-glib<wbr>c/work/senic_hub_beta-senic-li<wbr>nux-gnueabi/u-boot-fw-utils-se<wbr>nic/v2017.03+gitAUTOINC+5233f1<wbr>7333-r0=/usr/src/debug/u-boot-<wbr>fw-utils-senic/v2017.03+gitAUT<wbr>OINC+5233f17333-r0<br>
-fdebug-prefix-map=/home/alan/<wbr>senic-os-update/build/tmp-glib<wbr>c/work/senic_hub_beta-senic-li<wbr>nux-gnueabi/u-boot-fw-utils-se<wbr>nic/v2017.03+gitAUTOINC+5233f1<wbr>7333-r0/recipe-sysroot-native=<br>
-fdebug-prefix-map=/home/alan/<wbr>senic-os-update/build/tmp-glib<wbr>c/work/senic_hub_beta-senic-li<wbr>nux-gnueabi/u-boot-fw-utils-se<wbr>nic/v2017.03+gitAUTOINC+5233f1<wbr>7333-r0/recipe-sysroot=<br>
 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed V=1<br>
| ERROR: oe_runmake failed<br>
| make -f ./Makefile silentoldconfig<br>
| make -f ./scripts/Makefile.build obj=scripts/basic<br>
|  Â cc -Wp,-MD,scripts/basic/.fixdep.<wbr>d -Wall -Wstrict-prototypes -O2<br>
-fomit-frame-pointer  Â  Â  -o scripts/basic/fixdep<br>
scripts/basic/fixdep.c<br>
| /bin/sh: 1: cc: not found<br>
<br>
<br>
I would assume this is a to specific error to ask help about. It seems<br>
that the compiler isn't being called correctly (it's called as cc,<br>
which isn't the full compiler name).<br>
Suggestions are welcome but that isn't the reason for my post.<br>
<br></blockquote><div><br></div></div></div><div>Guessing... apply this in your recipe:</div><div><br></div><div><a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-bsp/u-boot/files/default-gcc.patch?h=pyro" target="_blank">http://git.yoctoproject.org/cg<wbr>it/cgit.cgi/poky/tree/meta/rec<wbr>ipes-bsp/u-boot/files/default-<wbr>gcc.patch?h=pyro</a></div><span class="m_-1619227811431477559m_-9066818731552652358m_-1287795589794992332m_-6888141748760329520HOEnZb"><font color="#888888"><div><div><div class="m_-1619227811431477559m_-9066818731552652358m_-1287795589794992332m_-6888141748760329520m_2972955679539863485gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif"><br></span></div><div dir="ltr"><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif">-- </span></div><div dir="ltr"><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif">Alex Kiernan</span><div><span style="font-size:12.8px;font-family:arial,helvetica,sans-serif;color:rgb(255,122,0)">Senior Engineering Manager</span><br style="font-size:12.8px;font-family:arial,helvetica,sans-serif"></div></div></div></div></div></div></div></font></span></div></div></div><span class="m_-1619227811431477559m_-9066818731552652358m_-1287795589794992332m_-6888141748760329520HOEnZb"><font color="#888888">

<br>
<a href="http://www.hivehome.com" target="_blank">hivehome.com</a><div><div><br></div><div><img src="https://s3-eu-west-1.amazonaws.com/810230812/HiveSig.png"></div><div><br></div><div><br></div><div><div style="font-size:12px;background-color:rgb(255,255,255);margin:0cm 0cm 0.0001pt;font-family:Arial,sans-serif"><font size="1" color="#b7b7b7">Hive | London | Cambridge | Houston | Toronto<u></u><u></u></font></div><div style="font-size:12px;background-color:rgb(255,255,255);margin:0cm 0cm 0.0001pt;font-family:Arial,sans-serif"><font size="1" color="#b7b7b7">The information contained in or attached to this email is confidential and intended only for the use of the individual(s) to which it is addressed. It may contain information which is confidential and/or covered by legal professional or other privilege. The views expressed in this email are not necessarily the views of Centrica plc, and the company, its directors, officers or employees make no representation or accept any liability for their accuracy or completeness unless expressly stated to the contrary. <u></u><u></u></font></div><div style="font-size:12px;background-color:rgb(255,255,255);margin:0cm 0cm 0.0001pt;font-family:Arial,sans-serif"><font size="1" color="#b7b7b7">Centrica Connected Home Limited (company no: 5782908), registered in England and Wales with its registered office at Millstream, Maidenhead Road, Windsor, Berkshire SL4 5GD.</font></div></div></div></font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>