From 1383c80c5ae53f5ab399122034dc967c667abc15 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 27 May 2015 10:42:28 +1000 Subject: Add conditional support for RTEMS PCI to the waf build. Check for the "rtems/pci.h" header and provide conditional build support with waf to build for BSPs that do not have PCI support. The Makefile build always defines HAVE_RTEMS_PCI_H which is the same state with this change. The PCI calls still exist however they do nothing and return a constant. Any PCI based driver that makes these calls on a BSP that does not have PCI support will not work which is understandable. Either change the driver or add PCI support the BSP. --- wscript | 1 + 1 file changed, 1 insertion(+) (limited to 'wscript') diff --git a/wscript b/wscript index d1438ee6..d02d3684 100644 --- a/wscript +++ b/wscript @@ -37,6 +37,7 @@ def options(opt): def bsp_configure(conf, arch_bsp): conf.check(header_name = "dlfcn.h", features = "c") + conf.check(header_name = "rtems/pci.h", features = "c", mandatory = False) def configure(conf): if conf.options.auto_regen: -- cgit v1.2.3