You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/09/14 22:07:03 UTC

[GitHub] [incubator-nuttx] v01d edited a comment on pull request #1786: support building external code into the OS, similar to how "external" apps work

v01d edited a comment on pull request #1786:
URL: https://github.com/apache/incubator-nuttx/pull/1786#issuecomment-692338727


   A simple case would be a simple driver, which you could have like this:
   <pre>
   nuttx/external/Kconfig
   nuttx/external/Makefile
   nuttx/external/driver.c
   nuttx/external/driver.h
   </pre>
   
   But the more useful case is to have subdirectories, one for each "component" (driver, external library, etc):
   <pre>
   nuttx/external/Kconfig
   nuttx/external/Makefile
   nuttx/external/subdir1/Kconfig
   nuttx/external/subdir1/Make.defs
   nuttx/external/subdir1/driver1.c
   nuttx/external/subdir1/driver1.h
   
   nuttx/external/subdir2/Kconfig
   nuttx/external/subdir2/Make.defs
   nuttx/external/subdir2/driver2.c
   nuttx/external/subdir2/driver2.h
   </pre>
   
   In which case the top-level makefile includes all child Make.defs and same for the Kconfig. In this case, each subdir can be a different git repository.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org