DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
You can copy any pieces that you like from the old apps/directory to your custom apps directory as necessary. This is documented in nuttx/boards/README.txt, in the NuttX Porting Guide and Build options, and in the apps/README.txt file.
...
| Code Block |
|---|
tools/configure.sh MyBoard:MyConfiguration |
Special }} apps/external Directory{{. Use of the name apps/external is suggested because that name is included in the .gitignore file and will save you some nuisance when working with GIT.
...
A simple, minimally invasive approach would be to contain the apps/ GIT clone within your custom application directory. In this case }}apps/{{ would appear as a directory under your custom application directory instead of your application directories being kludged in as sub-directories of apps/. It may even be implemented as a sub-module of your custom application directory.
...
Library Issues. The contained directory will create and install a static library called }}libapps($LIBEXT){{ in the }}nuttx/staging{{ directory. Your custom logic must also appear in the }}nuttx/staging{{ directory. Here are two ways that you might do that:
- Merge with }} libapps($LIBEXT)''. The custom application directory's
Makefilecould create and install the finallibapps($LIBEXT)in thenuttx/stagingdirectory. The<custom-dir>/apps/libapps($LIBEXT)could merge its custom object files with<custom-dir>/libapps($LIBEXT)and then re-install the library atnuttx/staging. - Use the
EXTRA_LIBSFeature. The build system supports two special Make-related variables callEXTRA_LIBSandEXTRA_LIBPATHS. These may be defined in your board-specificMake.defsfile.EXTRA_LIBSprovides the name of you custom library. If you create<custom-dir>/libcustom.a, then the value ofEXTRA_LIBSwould be-lcustomand the value ofEXTRA_LIBPATHSwould be-L <custom-dir>(assuming the GNUldlinker).
...