<div dir="ltr"><div class="gmail_default" style="font-size:small">Hello,<br><br>The current directory structure I have been using in my GSoC project<br>for the FreeBSD drivers is giving me troubles while installing/including<br>the headers.<br><br>The current structure of the drivers is as follows</div><div class="gmail_default" style="font-size:small">cpukit/libfreebsd/freebsd --> After this we follow the FreeBSD file structure</div><div class="gmail_default" style="font-size:small"><br>Eg: ti_pinmux.h is placed under sys/arm/ti/ti_pinmux.h in FreeBSD<br>     In RTEMS this is placed under <br>     cpukit/libfreebsd/freebsd/sys/arm/ti/ti_pinmux.h<br><br>And the files implemented to make porting easier are placed under<br>cpukit/libfreebsd/rtems<br>You can find these files here<br><a href="https://github.com/gs-niteesh/rtems/tree/rtemsbsd/cpukit/libfreebsd/rtems">https://github.com/gs-niteesh/rtems/tree/rtemsbsd/cpukit/libfreebsd/rtems</a><br>I have already started a discussion and written a blog about these files<br>please check out <a href="https://lists.rtems.org/pipermail/devel/2020-July/060541.html">https://lists.rtems.org/pipermail/devel/2020-July/060541.html</a><br>With the current structure, we aren't able to include the header files in<br>BSP and test suite directory.<br><br>The spec file for libfreebsd can be found here<br><a href="https://github.com/gs-niteesh/rtems/blob/pinmux-rtems-6/spec/build/cpukit/objfreebsd.yml">https://github.com/gs-niteesh/rtems/blob/pinmux-rtems-6/spec/build/cpukit/objfreebsd.yml</a><br><br>After a discussion regarding this with Christian, he suggested to break out<br>of the FreeBSD structure and place the header files under cpukit/include<br>and install them with FreeBSD like structure.<br>I tried this and was able to include the headers in the BSP and testsuite directory.<br>On using this approach we have the following structure.<br>FreeBSD header files are under<br>cpukit/include<br>FreeBSD source files under<br>cpukit/libfreebsd/freebsd<br><br>We will also be using the same approach for the files that have implemented<br>to make porting easier.<br>All the headers will be placed under<br>cpukit/include<br>The source files under<br>cpukit/libfreebsd/rtems ( Currently we are having only one source file).<br><br>I kindly request everyone to quickly provide their feedback on this structure<br>since this is hampering my progress. If you don't like this structure please<br>suggest something better.<br><br>Thank you,<br>Niteesh.<br></div></div>