source: rtems/cpukit/libpci/Makefile.am @ f9fbb333

Last change on this file since f9fbb333 was f9fbb333, checked in by Daniel Hellstrom <daniel@…>, on Aug 30, 2017 at 9:01:38 AM

libpci: fix pci device allocation

The refactoring of pci_dev_create() was incorrect since the code relied on
different defines before including pci/cfg.h. This reverts back to the
original code having two pci_dev_create() one in auto and one in read library.
confdefs.h selectes between the two libraries so both there is no link
conflict.

Updates #3029

  • Property mode set to 100644
File size: 1.3 KB
Line 
1include $(top_srcdir)/automake/compile.am
2include $(top_srcdir)/automake/multilib.am
3
4if LIBPCI
5
6EXTRA_DIST=
7
8## PCI Library
9include_HEADERS = pci.h
10include_pcidir = $(includedir)/pci
11include_pci_HEADERS =   pci/access.h pci/cfg.h \
12                        pci/cfg_auto.h pci/cfg_static.h \
13                        pci/cfg_peripheral.h pci/cfg_read.h \
14                        pci/ids.h pci/ids_extra.h pci/irq.h \
15                        pci/pcireg.h
16
17noinst_LIBRARIES = libpci.a
18
19libpci_a_SOURCES  = pci_access.c
20libpci_a_SOURCES += pci_access_func.c
21libpci_a_SOURCES += pci_access_io.c
22libpci_a_SOURCES += pci_access_mem.c
23libpci_a_SOURCES += pci_access_mem_be.c
24libpci_a_SOURCES += pci_access_mem_le.c
25libpci_a_SOURCES += pci_cfg.c
26libpci_a_SOURCES += pci_cfg_auto.c
27libpci_a_SOURCES += pci_cfg_print_code.c
28libpci_a_SOURCES += pci_cfg_read.c
29libpci_a_SOURCES += pci_cfg_static.c
30libpci_a_SOURCES += pci_cfg_peripheral.c
31libpci_a_SOURCES += pci_find.c
32libpci_a_SOURCES += pci_find_dev.c
33libpci_a_SOURCES += pci_for_each.c
34libpci_a_SOURCES += pci_for_each_dev.c
35libpci_a_SOURCES += pci_for_each_child.c
36libpci_a_SOURCES += pci_get_dev.c
37libpci_a_SOURCES += pci_irq.c
38libpci_a_SOURCES += pci_print.c
39
40# Driver manager PCI bus
41libpci_a_SOURCES += pci_bus.c
42include_drvmgrdir = $(includedir)/drvmgr
43include_drvmgr_HEADERS = pci_bus.h
44
45endif
46
47include $(srcdir)/preinstall.am
48include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.