[RTEMS Project] #3351: libbsd: Add support for conditional compilation of modules and compiler flags

RTEMS trac trac at rtems.org
Mon Mar 26 01:44:57 UTC 2018


#3351: libbsd: Add support for conditional compilation of modules and compiler
flags
--------------------------------+---------------------------------
 Reporter:  Christian Mauderer  |       Owner:  Christian Mauderer
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  Indefinite
Component:  network/libbsd      |     Version:  5
 Severity:  normal              |  Resolution:
 Keywords:  libbsd waf IPSec    |  Blocked By:
 Blocking:                      |
--------------------------------+---------------------------------

Comment (by Chris Johns):

 I have posted a patch to devel for review. It has a couple of issues:

 1. No changes to `libbsd.txt`
 2. The headers need to all be parse for `@CPU@` as `bld.env['RTEMS_CPU']`
 was taken out and replaced with `@CPU@`.

 If you are happy with the direction I can clean up these two issues and
 push to master.

 Note, I have moved a range of configuration pieces from `builder.py` to
 `waf_libbsd.py._defaults` to form the basis of the configuration data.
 After loading the configuration is updated to reflect the variant being
 built.

 The next step is to add a module level enable control and to default it to
 `True` then un-comment the modules which are commented defaulting them to
 disabled. This will give us 2 more entries in the configuration dict,
 `modules` and `modules-enabled` and by default `modules-enabled` is copied
 to `modules-build` and that list is the modules to build. If we add
 'archive-name` and `defines` you are close to supporting build variants.
 It becomes a simple matter or looping over a config creating a `builder`
 instance for each variant to build a number of variants. All this is done
 before the first build job is run.

--
Ticket URL: <http://devel.rtems.org/ticket/3351#comment:10>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list