From e1e10cddee4be72c2a66218c2bc0393e578a7fdc Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sat, 23 Apr 2016 17:37:27 +1000 Subject: 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. --- wscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index e4ae9b8b..5dba56ba 100644 --- a/wscript +++ b/wscript @@ -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) -- cgit v1.2.3