<div dir="auto">I'm missing an operational view of this even from all the pieces and parts. It looks like there's a hash for some characteristics of the RTEMS build and another related to the bsp. But I don't see any documentation about what the intent of this from a system viewpoint and how a systems integrator would use this in any way.<div dir="auto"><br></div><div dir="auto">What's the use case?</div><div dir="auto"><br></div><div dir="auto">How would this improve the robustness or integrity of a system? </div><div dir="auto"><br></div><div dir="auto">Is this for configuration management? </div><div dir="auto"><br></div><div dir="auto">I know this has to have a useful purpose and likely multiple ones but I can't tell what they are from anything that I have seen so far.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 24, 2021, 12:01 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 24/02/2021 18:55, Gedare Bloom wrote:<br>
<br>
> On Wed, Feb 24, 2021 at 6:57 AM Sebastian Huber<br>
> <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank" rel="noreferrer">sebastian.huber@embedded-brains.de</a>> wrote:<br>
>> Update #4265.<br>
>> ---<br>
>> wscript | 27 ++++++++++++++++++++++++++-<br>
>> 1 file changed, 26 insertions(+), 1 deletion(-)<br>
>><br>
>> diff --git a/wscript b/wscript<br>
>> index 6626fafb74..83c7c446bb 100755<br>
>> --- a/wscript<br>
>> +++ b/wscript<br>
>> @@ -1359,6 +1359,30 @@ def get_compiler(conf, cp, variant):<br>
>> return value<br>
>><br>
>><br>
>> +def _generate_build_hash(conf):<br>
>> + import hashlib<br>
>> + import base64<br>
>> +<br>
>> + build_hash = ""<br>
>> + for key in sorted(conf.env):<br>
>> + build_hash = build_hash + key + str(conf.env[key])<br>
>> + for discard in [<br>
>> + conf.env.PREFIX,<br>
>> + conf.bldnode.make_node(conf.env.VARIANT).abspath(),<br>
>> + conf.path.abspath(),<br>
>> + ]:<br>
>> + build_hash = build_hash.replace(discard, "")<br>
>> + state = hashlib.sha256()<br>
>> + state.update(build_hash.encode("utf-8"))<br>
>> + conf.define(<br>
>> + "RTEMS_BUILD_HASH",<br>
>> + base64.urlsafe_b64encode(state.digest()).decode("utf-8"),<br>
>> + )<br>
>> + conf.write_config_header(<br>
>> + conf.env.VARIANT + "/cpukit/include/rtems/build-hash.h"<br>
> Is this injecting a file in the source tree?<br>
><br>
No, it is in the build tree, for example:<br>
<br>
build/arm/realview_pbx_a9_qemu/cpukit/include/rtems/build-hash.h<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank" rel="noreferrer">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div>