mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add a directory to hold board-specific drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@151 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -295,6 +295,8 @@ below and discussed in the following paragraphs:</p>
|
|||||||
<ul><pre>
|
<ul><pre>
|
||||||
<<i>board-name</i>>
|
<<i>board-name</i>>
|
||||||
|-- include/
|
|-- include/
|
||||||
|
|-- src/
|
||||||
|
| `-- Makefile
|
||||||
|-- Make.defs
|
|-- Make.defs
|
||||||
|-- defconfig
|
|-- defconfig
|
||||||
`-- setenv.sh
|
`-- setenv.sh
|
||||||
@@ -310,6 +312,17 @@ below and discussed in the following paragraphs:</p>
|
|||||||
These header file can only be included by files in <code>arch/<arch-name>/include/</code>
|
These header file can only be included by files in <code>arch/<arch-name>/include/</code>
|
||||||
and <code>arch/<arch-name>/src/</code>.
|
and <code>arch/<arch-name>/src/</code>.
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>src/</code>:
|
||||||
|
This directory contains board specific drivers.
|
||||||
|
This directory will be linked as <config>arch/<arch-name>/src/board</config> at configuration
|
||||||
|
time and will be integrated into the build system.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>src/Makefile</code>:
|
||||||
|
This makefile will be invoked to build the board specific drivers.
|
||||||
|
It must support the following targets: <code>libext$(LIBEXT)</code>, <code>clean</code>, and <code>distclean</code>.
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>Make.defs</code>: This makefile fragment provides architecture and
|
<code>Make.defs</code>: This makefile fragment provides architecture and
|
||||||
tool-specific build options. It will be included by all other
|
tool-specific build options. It will be included by all other
|
||||||
|
|||||||
Reference in New Issue
Block a user