<div dir="auto">AFAIK unless someone has added some support, the drvmgr was written by the Gaisler folks for SPARC BSPs and that's all the BSPs that work with it so far.<div dir="auto"><br></div><div dir="auto">--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 14, 2017 11:46 PM, "John Soni Jose" <<a href="mailto:john.k@gracelabs.com">john.k@gracelabs.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
Any inputs or suggestions to move forward on this issue.<br>
<br>
Regards<br>
<br>
John<br>
<br>
<br>
On Tuesday 14 February 2017 03:46 PM, John Soni Jose wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
Trying to execute PCI shell terminal task "cpukit/libmisc/shell/main_pci<wbr>" on an x86 machine.<br>
<br>
Made below changes for including LIBPCI. The changes were made in "cpukit/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a>" and "cpukit/libmisc/shell/shellcon<wbr>fig.c"<br>
<br>
diff --git a/cpukit/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/cpukit/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
index 3d6888c..095866e 100644<br>
--- a/cpukit/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
+++ b/cpukit/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
@@ -385,7 +385,7 @@ AC_MSG_RESULT([$HAVE_SHA])<br>
 # Filter libpci to only build for architectures that have support for it<br>
 AC_MSG_CHECKING([whether CPU supports libpci])<br>
 case $RTEMS_CPU in<br>
-  sparc)<br>
+  sparc | i386)<br>
    HAVE_LIBPCI=yes ;;<br>
   *)<br>
    HAVE_LIBPCI=no ;;<br>
<br>
diff --git a/cpukit/libmisc/shell/shellco<wbr>nfig.c b/cpukit/libmisc/shell/shellco<wbr>nfig.c<br>
index 11a4ff0..a676550 100644<br>
--- a/cpukit/libmisc/shell/shellco<wbr>nfig.c<br>
+++ b/cpukit/libmisc/shell/shellco<wbr>nfig.c<br>
@@ -15,5 +15,6 @@<br>
<br>
 #define CONFIGURE_SHELL_COMMANDS_INIT<br>
 #define CONFIGURE_SHELL_COMMANDS_ALL<br>
+#define RTEMS_PCI_CONFIG_LIB<br>
<br>
diff --git a/cpukit/libpci/Makefile.am b/cpukit/libpci/Makefile.am<br>
index cf336ed..a0dff03 100644<br>
--- a/cpukit/libpci/Makefile.am<br>
+++ b/cpukit/libpci/Makefile.am<br>
@@ -41,7 +41,7 @@ libpci_a_SOURCES += pci_print.c<br>
 # Driver manager PCI bus<br>
 libpci_a_SOURCES += pci_bus.c<br>
 include_drvmgrdir = $(includedir)/drvmgr<br>
-include_drvmgr_HEADERS = pci_bus.h<br>
+include_drvmgr_HEADERS = pci_bus.h drvmgr.h<br>
<br>
After the above changes ran bootstrap command to regenerate <a href="http://preinstall.am" rel="noreferrer" target="_blank">preinstall.am</a> files.<br>
<br>
Hitting this compilation error. The same error is happening for both x86 and leon2<br>
<br>
"gmake[6]: *** No rule to make target `drvmgr.h', needed by `../../cpukit/../../../pc386/l<wbr>ib/include/drvmgr/drvmgr.h'.  Stop.<br>
gmake[6]: Leaving directory `/opt/RTEMS/sandbox/i386-rtems<wbr>4.12/i386-rtems4.12/c/pc386/<wbr>cpukit/libpci'"<br>
<br>
"gmake[6]: Entering directory `/opt/RTEMS/sandbox/leon-rtems<wbr>4.12/sparc-rtems4.12/c/leon2/<wbr>cpukit/libpci'<br>
gmake[6]: *** No rule to make target `drvmgr.h', needed by `../../cpukit/../../../leon2/l<wbr>ib/include/drvmgr/drvmgr.h'.  Stop."<br>
<br>
<br>
Do we need to enable any other flags for successful compilation of libpci ?<br>
<br>
Regards<br>
<br>
John<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman<wbr>/listinfo/devel</a><br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman<wbr>/listinfo/devel</a><br>
</blockquote></div></div>