<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 don’t think if you build on two different systems you will get the exactly same md5. Quite apart from minor differences in compiler versions, for example, the build date/time is inside the binary. The new IDF framework also has an app versioning system that puts a bunch of other information in it.<div class=""><br class=""></div><div class="">So long as you are building with the same sdkconfig, the output binary size should be roughly equivalent.<br class=""><div><br class=""></div><div>I updated the sdkconfig.default.hw31 with the exact sdkconfig I use for <a href="http://api.openvehicles.com" class="">api.openvehicles.com</a> productions builds. That should give you the same settings as I have. For local development, I use compiler optimisation debug, and a gdb stub, but for production we use release compiler optimisation.</div><div><br class=""></div><div>Regards, Mark.</div><div><br class=""><blockquote type="cite" class=""><div class="">On 9 Aug 2019, at 4:02 PM, Bernd Geistert <<a href="mailto:b_ghosti@gmx.de" class="">b_ghosti@gmx.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: Verdana;font-size: 12.0px;" class=""><div class="">
<div class="">Thanks Mark,</div>

<div class=""> </div>

<div class="">my first build was using the original sdkconfig.default.hw31, where my ovms3.bin build had I size of 3036096 bytes, quite different to the "reference" ovms3.bin (3.2.002-151-g56116fe) with 2594192 bytes. Then I figured out that the Default setting in the original sdkconfig for 'Compiler Optimization' was 'Default', and I modifed it to 'Release'. Afterwards, I got an ovms3.bin build with 2592512 bytes. This may be more similar to the "reference" ovms3.bin (3.2.002-151-g56116fe) with 2594192 bytes, however, the .bin are not the same.</div>

<div class=""> </div>

<div class="">I'm used to check builds for equality using md5sum or sha256sum which can't work here due to the different size. Therefore I was asking if there are any more used modifications known from support/sdkconfig.default.hw31, to build exaclty the same "reference" ovms3.bin.</div>

<div class=""> </div>

<div class="">I'm not sure if this would solve my issue, as there could be some other issue with my toolchain (curently one can't follow the Developer's Guide instructions to get a working toolchain, plz see <a href="https://www.openvehicles.com/node/2263" target="_blank" class="">https://www.openvehicles.com/node/2263</a></div>

<div class=""> </div>

<div class="">As a start, could you please tell my if you are setting  'Compiler Optimization' also to 'Release' instead of 'Debug' for the automatic builds? If not, there must by some other issue with my toolchain installation.</div>

<div class=""> </div>

<div class="">Regards, Matthias</div>

<div class=""> </div>

<div class=""> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="margin:0 0 10px 0;" class=""><b class="">Gesendet:</b> Donnerstag, 08. August 2019 um 11:14 Uhr<br class="">
<b class="">Von:</b> "Mark Webb-Johnson" <<a href="mailto:mark@webb-johnson.net" class="">mark@webb-johnson.net</a>><br class="">
<b class="">An:</b> "OVMS Developers" <<a href="mailto:ovmsdev@lists.openvehicles.com" class="">ovmsdev@lists.openvehicles.com</a>><br class="">
<b class="">Betreff:</b> Re: [Ovmsdev] How to reproduce exatly the same ovms3.bin (3.2.002-151-g56116fe) build</div>

<div name="quoted-content" class="">If you copy from support/sdkconfig.default.hw31 to sdkconfig, you should have something pretty close to what we use to build the productions releases.<br class="">
<br class="">
You may have to accept some default values the next time you build.<br class="">
<br class="">
Regards, Mark.<br class="">
<br class="">
> On 8 Aug 2019, at 3:32 AM, Bernd Geistert <<a href="mailto:b_ghosti@gmx.de" class="">b_ghosti@gmx.de</a>> wrote:<br class="">
><br class="">
> Hi all,<br class="">
><br class="">
> I would like to have a defined toolchain for building ovms3.bin, so that<br class="">
> I can reproduce the same binary (for the same GIT #tag of course) from<br class="">
> where I can start and later share own development.<br class="">
><br class="">
> I have downloaded the "reference" ovms3.bin (3.2.002-151-g56116fe Thu<br class="">
> Aug 1 16:04:20 UTC 2019 Automated build (markhk8), size = 2594192<br class="">
> bytes), but this is different to my own build in the mingw32 console using<br class="">
><br class="">
> $ make clean<br class="">
> $ make all<br class="">
> Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc<br class="">
> Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5<br class="">
> Compiler version: 5.2.0<br class="">
> Python requirements from C:/msys32/home/.../esp/esp-idf/requirements.txt<br class="">
> are satisfied [Python 3.7.3]<br class="">
><br class="">
> App "ovms3" version: 3.2.002-151-g56116fe1<br class="">
> CC build/app_update/esp_app_desc.o<br class="">
> AR build/app_update/libapp_update.a<br class="">
> Build version is 3.2.002-151-g56116fe1<br class="">
> CXX build/main/ovms_version.o<br class="">
> AR build/main/libmain.a<br class="">
> Generating libapp_update.a.sections_info<br class="">
> Generating libmain.a.sections_info<br class="">
> Generating esp32.project.ld<br class="">
> LD build/ovms3.elf<br class="">
><br class="">
> $ ls -l build/ovms3.bin<br class="">
> -rw-r--r-- 1 Matthias None 2592512 5. Aug 21:12 build/ovms3.bin<br class="">
><br class="">
> At first, my ovms3.bin build was size 3036096, but I modified the make<br class="">
> menuconfig default 'Compiler Optimization' from 'Default' to 'Release',<br class="">
> the size inow similar to edge/ovms3.bin, but not the same.<br class="">
><br class="">
> Maybe someone could tell about other important settings in "IoT<br class="">
> Development Framework Configuration", maybe this could be the path to<br class="">
> match exactly markhk8's setting for 'Automated build'?<br class="">
><br class="">
> I described this also in <a href="https://www.openvehicles.com/node/2263" target="_blank" class="">https://www.openvehicles.com/node/2263</a><br class="">
><br class="">
> Regards<br class="">
><br class="">
> Matthias</div>
</div>
</div>
</div></div></div>
_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>