rtems waf, examples, and RTEMS_POSIX_API

Joel Sherrill joel at rtems.org
Mon Nov 30 18:40:07 UTC 2020


Hi

With more POSIX enabled by default, the RTEMS_POSIX_API flag has changed
meanings and this has broken the meaning of checking for POSIX in
rtems_waf. The rtems-examples use code like this which now turns off all
POSIX examples because POSIX signals are disabled.

    if rtems.check_posix(bld):
        bld.recurse('posix_hello_world')
        bld.recurse('both_hello')


I suspect rtems_check_posix() should always return true now and another
method named rtems_check_posix_signals() should be added based on the flag.

Similarly, RTEMS_POSIX_API should probably always be set and another macro
provided for POSIX signals.

The meaning changed without considering the impact. We need to account for
this.

I think this was also present in 5 but I am not sure how to deal with it
there. My proposed change may be too much for the feature macro.

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201130/35dcf7c4/attachment.html>


More information about the devel mailing list