RTEMS | waf: Fix handling of the VERSION file in a release (!257)

Chris Johns (@chris) gitlab at rtems.org
Sat Oct 26 21:47:29 UTC 2024




Chris Johns commented on a discussion on cpukit/sapi/src/version.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/257#note_113828

 > +{
 > +  /*
 > +   * RTEMS 5 and 6 only provide the VC key. The VC key header will be
 > +   * moved to `version-release-label.h` after RTEMS 6
 > +   */
 > +#ifdef RTEMS_VERSION_CONTROL_KEY
 > +  return RTEMS_VERSION_CONTROL_KEY;
 > +#else
 > +  return "";
 > +#endif
 > +}
 > +
 > +bool rtems_version_release_label_is_valid( void )
 > +{
 > +  const char* release_label = rtems_version_release_label( );
 > +  return release_label[ 0 ] != '\0';

Yes. Only the RTEMS project can set the release label to `""`. This is a 1:1 replacement for the VC key call.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/257#note_113828
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241026/01458dff/attachment-0001.htm>


More information about the bugs mailing list