Changeset 1383c80 in rtems-libbsd for waf_generator.py


Ignore:
Timestamp:
May 27, 2015, 12:42:28 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
4517fa3
Parents:
e35a65e
git-author:
Chris Johns <chrisj@…> (05/27/15 00:42:28)
git-committer:
Chris Johns <chrisj@…> (06/01/15 00:36:58)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waf_generator.py

    re35a65e r1383c80  
    243243        self.add('def bsp_configure(conf, arch_bsp):')
    244244        self.add('    conf.check(header_name = "dlfcn.h", features = "c")')
     245        self.add('    conf.check(header_name = "rtems/pci.h", features = "c", mandatory = False)')
    245246        self.add('')
    246247        self.add('def configure(conf):')
Note: See TracChangeset for help on using the changeset viewer.