[PATCH v3 0/6] libbsd: Create some basic buildsets.

Christian Mauderer christian.mauderer at embedded-brains.de
Thu May 3 05:03:42 UTC 2018


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.mauderer at 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.


More information about the devel mailing list