<div dir="ltr"><div>Hi Christian,</div><div><br></div><div>I'm not able to build libbsd with this patch. I'm getting the following error:</div><div>```</div><div>../../freebsd/sys/dev/usb/controller/ehci_imx.c:70:10: fatal error: arm/freescale/imx/imx_ccmvar.h: No such file or directory<br> #include <arm/freescale/imx/imx_ccmvar.h><br></div>```<div>From git blame I got to know that this file was introduced by the commit from this patch.</div><div>Am I missing something or is it really a bug?</div><div><br></div><div>Sorry for commenting on the patch that has already been committed, please let me know of</div><div>the preferred way to comment on a commit if this is not the right way.</div><div><br></div><div><br></div><div>Best regards,</div><div>Vijay</div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 14, 2020 at 8:21 PM Christian Mauderer <<a href="mailto:christian.mauderer@embedded-brains.de">christian.mauderer@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
 libbsd.py                            | 2 ++<br>
 rtemsbsd/include/bsp/nexus-devices.h | 5 +++++<br>
 2 files changed, 7 insertions(+)<br>
<br>
diff --git a/libbsd.py b/libbsd.py<br>
index 4f8fb4d2..ed6493b2 100644<br>
--- a/libbsd.py<br>
+++ b/libbsd.py<br>
@@ -5028,6 +5028,8 @@ class imx(builder.Module):<br>
         self.addKernelSpaceSourceFiles(<br>
             [<br>
                 'sys/arm/freescale/imx/imx6_ccm.c',<br>
+                'sys/arm/freescale/imx/imx6_usbphy.c',<br>
+                'sys/dev/usb/controller/ehci_imx.c',<br>
             ],<br>
             mm.generator['source']()<br>
         )<br>
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h<br>
index 0a210bd9..d2ceab8e 100644<br>
--- a/rtemsbsd/include/bsp/nexus-devices.h<br>
+++ b/rtemsbsd/include/bsp/nexus-devices.h<br>
@@ -128,6 +128,11 @@ RTEMS_BSD_DEFINE_NEXUS_DEVICE(ofwbus, 0, 0, NULL);<br>
 SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);<br>
<br>
 SYSINIT_DRIVER_REFERENCE(ccm, simplebus);<br>
+SYSINIT_DRIVER_REFERENCE(ehci, simplebus);<br>
+SYSINIT_DRIVER_REFERENCE(usbphy, simplebus);<br>
+SYSINIT_DRIVER_REFERENCE(usbus, ehci);<br>
+RTEMS_BSD_DRIVER_USB;<br>
+RTEMS_BSD_DRIVER_USB_MASS;<br>
<br>
 SYSINIT_DRIVER_REFERENCE(ffec, simplebus);<br>
 SYSINIT_DRIVER_REFERENCE(ukphy, miibus);<br>
-- <br>
2.16.4<br>
<br>
_______________________________________________<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/listinfo/devel</a><br>
</blockquote></div></div></div>