diff options
author | Chris Johns <chrisj@rtems.org> | 2015-05-27 10:42:28 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2015-06-01 10:36:58 +1000 |
commit | 1383c80c5ae53f5ab399122034dc967c667abc15 (patch) | |
tree | 7e1b24c1eda4536246a141024edbc8c72bd0205d /makefile.py | |
parent | Regenerate with FreeBSD lex, yacc, and rpcgen tools. (diff) | |
download | rtems-libbsd-1383c80c5ae53f5ab399122034dc967c667abc15.tar.bz2 |
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.
Diffstat (limited to 'makefile.py')
-rwxr-xr-x | makefile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/makefile.py b/makefile.py index ea041bdc..122650f4 100755 --- a/makefile.py +++ b/makefile.py @@ -191,6 +191,7 @@ class ModuleManager(builder.ModuleManager): 'COMMON_FLAGS += -ImDNSResponder/mDNSShared\n' \ 'COMMON_FLAGS += -ImDNSResponder/mDNSPosix\n' \ 'COMMON_FLAGS += -Itestsuite/include\n' \ + 'COMMON_FLAGS += -DHAVE_RTEMS_PCI_H=1\n' \ 'COMMON_FLAGS += -Wall\n' \ 'COMMON_FLAGS += -Wno-format\n' \ 'COMMON_FLAGS += -MT $@ -MD -MP -MF $(basename $@).d\n' \ |