<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I think that makes you the ‘make guru’.<div class=""><br class=""></div><div class="">Thanks, Mark.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 25 Feb 2018, at 6:30 PM, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    I just pushed a solution for this.<br class="">
    <br class="">
    Regards,<br class="">
    Michael<br class="">
    <br class="">
    <br class="">
    <div class="moz-cite-prefix">Am 24.02.2018 um 21:52 schrieb Stephen
      Casner:<br class="">
    </div>
    <blockquote type="cite" cite="mid:alpine.OSX.2.21.1802241246590.97343@auge.attlocal.net" class="">
      <pre wrap="" class="">This needs some help, but I don't qualify as a 'make' guru.

Just now I pulled to get the new ovms_time and ran 'make' (within
emacs, as I usually do so I can jump to the source files for errors).
That compiled just the new module as expected.  Then I wanted to run
it, so in the shell I did "make flash monitor".  That proceded to run
GENCONFIG and recompile everything.

While working on the updates last evening I observed that every time I
did "make flash monitor" it would recompile ovms_version and link even
though I had just done a 'make' beforehand.

                                                        -- Steve

On Thu, 22 Feb 2018, Mark Webb-Johnson wrote:

</pre>
      <blockquote type="cite" class="">
        <pre wrap="" class="">Michael,

Our own version is set in main/ovms.h as:

#define OVMS_VERSION "3.0.990"

That is used to generate metrics, on boot.

I have just committed (and pushed) a re-work of this to do something similar to what you show here. Downside is that the main/ovms_version module has to be rebuilt each build.

OVMS > metrics list m.version
m.version                                3.0.990-6-ga45e575/factory/main build (idf v3.1-dev-392-g3d5f7b3e) Feb 22 2018 11:16:23

Any ‘make’ gurus out there that want to improve it, please go ahead. Perhaps we can somehow depend it on the main ovms.o (so it only builds when that changes)?

Regards, Mark

</pre>
        <blockquote type="cite" class="">
          <pre wrap="" class="">On 17 Feb 2018, at 7:26 AM, Michael Balzer <a class="moz-txt-link-rfc2396E" href="mailto:dexter@expeedo.de"><dexter@expeedo.de></a> wrote:


That's set at…

balzer@leela:~/esp/esp-idf> git show v3.1-dev
commit 22489d70214a5b7650ab197ffd6ab73e9c50a772
Merge: c4448714 f58c5b21
Author: Jiang Jiang Jian <a class="moz-txt-link-rfc2396E" href="mailto:jack@espressif.com"><jack@espressif.com></a> <a class="moz-txt-link-rfc2396E" href="mailto:jack@espressif.com"><mailto:jack@espressif.com></a>
Date:   Fri Dec 1 22:06:43 2017 +0800

    Merge branch 'bugfix/wdt_periph_enable' into 'master'

    watchdogs: make sure timer group peripherals are enabled

    See merge request !1623</pre>
          <br class="">
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br class="">
          <pre wrap="" class="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
        </blockquote>
      </blockquote>
    </blockquote>
    <br class="">
    <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </div>

_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>