waf: Add the ability to set FreeBSD options on the configure command line.

Add --freebsd-options to add specific FreeBSD compile time options to
the build. This is a developer tool.
This commit is contained in:
Chris Johns
2016-04-23 17:37:27 +10:00
parent 051ef305f7
commit e1e10cddee
6 changed files with 86 additions and 41 deletions

View File

@@ -63,6 +63,11 @@ def options(opt):
default = "config.inc",
dest = "net_config",
help = "Network test configuration.")
opt.add_option("--freebsd-options",
action = "store",
default = "",
dest = "freebsd_options",
help = "Set FreeBSD options (developer option).")
libbsd_waf.options(opt)
def bsp_configure(conf, arch_bsp):
@@ -82,8 +87,9 @@ def configure(conf):
conf.env.AUTO_REGEN = conf.options.auto_regen
conf.env.WARNINGS = conf.options.warnings
conf.env.NET_CONFIG = conf.options.net_config
conf.env.FREEBSD_OPTIONS =conf.options.freebsd_options
rtems.configure(conf, bsp_configure)
libbsd_waf.configure(conf, arch_bsp)
libbsd_waf.configure(conf)
def build(bld):
rtems.build(bld)