Am 03.05.2018 um 01:55 schrieb Chris Johns: > On 02/05/2018 23:15, Christian Mauderer wrote: >> I noted some problem with freebsd-to-rtems.py with the approach I used >> for testing for INET6 in the minimal config. So I changed that to >> include that into the general rtems-bsd-user-space.h. That has the >> advantage that it's not that easy to forget to look whether INET6 is >> used in some header. > > To clarify, does this mean an application build system header check could be > used to detect what is configured in an install libbsd package? > > If so this is a great idea and a welcome change.
I haven't exactly thought about that. But partially: yes. The change that I described here (rtems-bsd-user-space.h) is thought for the applications that we port from FreeBSD inside of the libbsd. But there are multiple options to detect the libbsd configuration from an application: - Due to the disabled modules some headers are not available. So a build system that checks for example for openssl headers will see whether openssl has been included or not. - The generated <rtems/bsd/modules.h> is installed together with the other headers. If an application is aware of RTEMS it can use that header to adapt to the libbsd configuration. > >> >> I'm confident that this is the final version of the patches. >> > > Looks fine to me. OK. Thanks. I'll commit them. Best regards Christian -- -------------------------------------------- embedded brains GmbH Herr Christian Mauderer Dornierstr. 4 D-82178 Puchheim Germany email: christian.maude...@embedded-brains.de Phone: +49-89-18 94 741 - 18 Fax: +49-89-18 94 741 - 08 PGP: Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel