<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
One observation about this method.<br>
It may not work for the way CI unit tests are presently behaving.<br>
<br>
For phosphorr-networkd, I think, the unit tests insist that
everything being tested be Git committed. The copy of the source
file will not be. This will prevent the unit test from running. I
found this requirement by the unit tests to be an irritant. I would
clang-format my source, and commit. The unit tests would do an
automated reformat, causing my commit to be useless. I'd have to
recommit the source one more time to proceed. It would be nice to
eliminate/modify this requirement in the unit tests.<br>
<br>
<div class="moz-cite-prefix">On 10/22/19 11:04 AM, Johnathan Mantey
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a62a6c18-c184-61b4-2e47-b5a26088ba04@intel.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
You may want to delay the copy until the compile step. For
example:<br>
<br>
<font face="Courier New, Courier, monospace">PROJECT_SRC_DIR :=
"${THISDIR}/${PN}"<br>
do_compile_prepend(){<br>
cp -f ${PROJECT_SRC_DIR}/your-header.hpp ${S}<br>
}</font><br>
<blockquote type="cite"
cite="mid:286a9c11-565f-35f7-bdd6-2099e926bf5a@linux.intel.com">Don't
patch, simply copy over your new header into the correct
directory in a do_configure_prepend (I think that's the right
yocto step to overwrite, but I might be off). -- <br>
</blockquote>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<title></title>
<font color="#1F497D"><font face="Century Gothic">Johnathan
Mantey<br>
<small>Senior Software Engineer</small><br>
<big><font color="#555555"><small><b>azad te</b><b>chnology
partners</b></small><br>
<small><font color="#1F497D"><small>Contributing to
Technology Innovation since 1992</small></font><small><br>
<font color="#1F497D">Phone: (503) 712-6764<br>
Email: <a
href="mailto:johnathanx.mantey@intel.com"
moz-do-not-send="true">johnathanx.mantey@intel.com</a></font></small><br>
<br>
</small></font></big></font></font> </div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<font color="#1F497D"><font face="Century Gothic">Johnathan Mantey<br>
<small>Senior Software Engineer</small><br>
<big><font color="#555555"><small><b>azad te</b><b>chnology
partners</b></small><br>
<small><font color="#1F497D"><small>Contributing to
Technology Innovation since 1992</small></font><small><br>
<font color="#1F497D">Phone: (503) 712-6764<br>
Email: <a href="mailto:johnathanx.mantey@intel.com">johnathanx.mantey@intel.com</a></font></small><br>
<br>
</small></font></big></font></font> </div>
</body>
</html>