2009-10-24 15:20:19 +02:00
|
|
|
README
|
|
|
|
^^^^^^
|
|
|
|
|
2009-11-28 16:10:08 +01:00
|
|
|
o Installation
|
2011-08-27 16:58:42 +02:00
|
|
|
- Installing Cygwin
|
|
|
|
- Download and Unpack
|
|
|
|
- Semi-Optional apps/ Package
|
|
|
|
- Installation Directories with Spaces in the Path
|
2013-04-04 19:34:01 +02:00
|
|
|
- Downloading from Repositories
|
2012-03-22 19:44:06 +01:00
|
|
|
- Notes about Header Files
|
2009-10-24 15:20:19 +02:00
|
|
|
o Configuring NuttX
|
2012-04-07 21:38:13 +02:00
|
|
|
- Instantiating "Canned" Configurations
|
2014-10-11 20:01:33 +02:00
|
|
|
- Refreshing Configurations
|
2012-04-07 21:38:13 +02:00
|
|
|
- NuttX Configuration Tool
|
2014-12-24 15:15:21 +01:00
|
|
|
- Finding Selections in the Configuration Menus
|
|
|
|
- Comparing Two Configurations
|
2013-01-03 14:39:16 +01:00
|
|
|
- Incompatibilities with Older Configurations
|
2012-12-23 18:32:41 +01:00
|
|
|
- NuttX Configuration Tool under DOS
|
2010-11-06 22:48:13 +01:00
|
|
|
o Toolchains
|
2011-08-27 16:58:42 +02:00
|
|
|
- Cross-Development Toolchains
|
|
|
|
- NuttX Buildroot Toolchain
|
|
|
|
o Shells
|
2009-10-24 15:20:19 +02:00
|
|
|
o Building NuttX
|
2011-08-27 16:58:42 +02:00
|
|
|
- Building
|
2013-12-04 14:46:10 +01:00
|
|
|
- Re-building
|
2012-09-18 16:06:57 +02:00
|
|
|
- Build Targets and Options
|
2012-11-11 19:36:28 +01:00
|
|
|
- Native Windows Build
|
2012-11-14 00:05:48 +01:00
|
|
|
- Installing GNUWin32
|
2011-12-31 17:53:05 +01:00
|
|
|
o Cygwin Build Problems
|
|
|
|
- Strange Path Problems
|
|
|
|
- Window Native Toolchain Issues
|
2009-10-24 15:20:19 +02:00
|
|
|
o Documentation
|
|
|
|
|
2009-11-28 16:10:08 +01:00
|
|
|
INSTALLATION
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
2010-11-06 22:58:45 +01:00
|
|
|
Installing Cygwin
|
2012-04-07 21:38:13 +02:00
|
|
|
-----------------
|
2010-11-06 22:58:45 +01:00
|
|
|
|
|
|
|
NuttX may be installed and built on a Linux system or on a Windows
|
|
|
|
system if Cygwin is installed. Installing Cygwin on your Windows PC
|
|
|
|
is simple, but time consuming. See http://www.cygwin.com/ for
|
|
|
|
installation instructions. Basically you just need to download a
|
|
|
|
tiny setup.exe program and it does the real, internet installation
|
|
|
|
for you.
|
|
|
|
|
2013-01-04 17:00:38 +01:00
|
|
|
NOTE: NuttX can also be installed and built on a native Windows
|
2014-01-20 20:10:30 +01:00
|
|
|
system, but with some potential tool-related issues (see the
|
2013-01-04 17:00:38 +01:00
|
|
|
discussion "Native Windows Build" below).
|
|
|
|
|
2010-11-06 22:58:45 +01:00
|
|
|
Some Cygwin installation tips:
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2010-11-06 22:58:45 +01:00
|
|
|
1. Install at C:\cygwin
|
|
|
|
|
|
|
|
2. Install EVERYTHING: "Only the minimal base packages from the
|
|
|
|
Cygwin distribution are installed by default. Clicking on categories
|
|
|
|
and packages in the setup.exe package installation screen will
|
|
|
|
provide you with the ability to control what is installed or updated.
|
|
|
|
Clicking on the "Default" field next to the "All" category will
|
|
|
|
provide you with the opportunity to install every Cygwin package.
|
|
|
|
Be advised that this will download and install hundreds of megabytes
|
|
|
|
to your computer."
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2010-11-06 22:58:45 +01:00
|
|
|
If you use the "default" installation, you will be missing many
|
|
|
|
of the Cygwin utilities that you will need to build NuttX. The
|
|
|
|
build will fail in numerous places because of missing packages.
|
|
|
|
|
2014-10-28 02:16:45 +01:00
|
|
|
NOTE: You don't really have to install EVERYTHING but I cannot
|
|
|
|
answer the question "Then what should I install?" I don't know
|
|
|
|
the answer to that and so will continue to recommend installing
|
|
|
|
EVERYTHING.
|
|
|
|
|
2010-11-06 22:58:45 +01:00
|
|
|
After installing Cygwin, you will get lots of links for installed
|
|
|
|
tools and shells. I use the RXVT native shell. It is fast and reliable
|
|
|
|
and does not require you to run the Cygwin X server (which is neither
|
2013-01-04 17:00:38 +01:00
|
|
|
fast nor reliable). Unless otherwise noted, the rest of these
|
|
|
|
instructions assume that you are at a bash command line prompt in
|
|
|
|
either Linux or in Cygwin shell.
|
2010-11-06 22:58:45 +01:00
|
|
|
|
2014-10-28 02:16:45 +01:00
|
|
|
UPDATE: The last time I installed EVERTHING, the download was
|
|
|
|
about 5GiB. The server I selected was also very slow so it took
|
|
|
|
over a day to do the whole install!
|
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
Download and Unpack
|
|
|
|
-------------------
|
2009-12-13 19:01:46 +01:00
|
|
|
|
|
|
|
Download and unpack the NuttX tarball. If you are reading this, then
|
|
|
|
you have probably already done that. After unpacking, you will end
|
|
|
|
up with a directory called nuttx-version (where version is the NuttX
|
|
|
|
version number). You might want to rename that directory nuttx to
|
|
|
|
match the various instructions in the documentation and some scripts
|
|
|
|
in the source tree.
|
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
Semi-Optional apps/ Package
|
|
|
|
---------------------------
|
2011-04-14 00:47:04 +02:00
|
|
|
|
|
|
|
All NuttX libraries and example code used to be in included within
|
|
|
|
the NuttX source tree. As of NuttX-6.0, this application code was
|
|
|
|
moved into a separate tarball, the apps tarball. If you are just
|
|
|
|
beginning with NuttX, then you will want to download the versioned
|
|
|
|
apps tarball along with the NuttX tarball. If you already have your
|
|
|
|
own product application directory, then you may not need the apps
|
|
|
|
tarball.
|
|
|
|
|
|
|
|
It is call "Semi-optional" because if you don't have some apps/
|
|
|
|
directory, NuttX will *fail* to build!
|
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
Download then unpack the apps tarball in the same directory where you
|
2011-04-14 00:47:04 +02:00
|
|
|
unpacked the NuttX tarball. After you unpack the apps tarball, you
|
2011-08-27 16:58:42 +02:00
|
|
|
will have a new directory called apps-version (where the version
|
2011-04-14 00:47:04 +02:00
|
|
|
should exactly match the version of the NuttX tarball). Again, you
|
|
|
|
might want to rename the directory to simply apps/ to match what
|
|
|
|
you read in the documentation
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2011-04-14 00:47:04 +02:00
|
|
|
After unpacking the apps tarball, you will have two directories side
|
|
|
|
by side like this:
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2011-04-14 00:47:04 +02:00
|
|
|
|
|
|
|
|
+----+----+
|
|
|
|
| |
|
|
|
|
nuttx/ apps/
|
|
|
|
|
|
|
|
This is important because the NuttX build will expect to find the
|
2014-10-28 02:16:45 +01:00
|
|
|
apps directory in that (default) location. That default location
|
2011-08-27 16:58:42 +02:00
|
|
|
can be changed by editing your NuttX configuration file, but that
|
2011-04-14 00:47:04 +02:00
|
|
|
is another story).
|
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
Installation Directories with Spaces in the Path
|
|
|
|
------------------------------------------------
|
2010-11-06 22:48:13 +01:00
|
|
|
|
|
|
|
The nuttx build directory should reside in a path that contains no
|
|
|
|
spaces in any higher level directory name. For example, under
|
2009-12-13 19:01:46 +01:00
|
|
|
Cygwin, your home directory might be formed from your first and last
|
|
|
|
names like: "/home/First Last". That will cause strange errors when
|
|
|
|
the make system tries to build.
|
|
|
|
|
|
|
|
[Actually, that problem is probably not to difficult to fix. Some
|
2010-11-07 00:41:08 +01:00
|
|
|
Makefiles probably just need some paths within double quotes]
|
2010-11-06 22:48:13 +01:00
|
|
|
|
|
|
|
I work around spaces in the home directory name, by creating a
|
|
|
|
new directory that does not contain any spaces, such as /home/nuttx.
|
2013-12-04 14:46:10 +01:00
|
|
|
Then I install NuttX in /home/nuttx and always build from
|
2012-09-17 21:33:42 +02:00
|
|
|
/home/nuttx/nuttx-code.
|
2009-12-13 19:01:46 +01:00
|
|
|
|
2013-04-04 19:34:01 +02:00
|
|
|
Downloading from Repositories
|
|
|
|
-----------------------------
|
|
|
|
|
2014-10-28 17:39:57 +01:00
|
|
|
Cloning the Repository
|
2014-10-28 02:16:45 +01:00
|
|
|
|
2014-10-28 17:39:57 +01:00
|
|
|
The current NuttX du jour is available in from a GIT repository. Cloning
|
|
|
|
instructions are available here:
|
2013-04-04 22:27:29 +02:00
|
|
|
|
2014-10-28 17:39:57 +01:00
|
|
|
https://sourceforge.net/p/nuttx/git
|
2013-04-04 22:27:29 +02:00
|
|
|
|
2014-10-30 14:48:34 +01:00
|
|
|
Configuring the Cone
|
|
|
|
|
|
|
|
Set your identity:
|
|
|
|
|
|
|
|
git config --global user.name "My Name"
|
|
|
|
git config --global user.email my.name@example.com
|
|
|
|
|
|
|
|
Colorized diffs are much easier to read:
|
|
|
|
|
|
|
|
git config --global color.branch auto
|
|
|
|
git config --global color.diff auto
|
|
|
|
git config --global color.interactive auto
|
|
|
|
git config --global color.status auto
|
|
|
|
|
|
|
|
Checkout other settings
|
|
|
|
|
|
|
|
git config --list
|
|
|
|
|
2014-10-28 17:39:57 +01:00
|
|
|
Cloning NuttX Inside Cygwin
|
2014-10-28 02:16:45 +01:00
|
|
|
|
2014-10-28 17:39:57 +01:00
|
|
|
If you are cloning the NuttX repository, it is recommended to avoid
|
|
|
|
automatic end of lines conversions by git. These conversions may break
|
|
|
|
some scripts like configure.sh. Before cloning, do the following:
|
2014-10-28 02:16:45 +01:00
|
|
|
|
2014-10-28 17:39:57 +01:00
|
|
|
git config --global core.autocrlf false
|
2013-04-04 22:27:29 +02:00
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
Notes about Header Files
|
|
|
|
------------------------
|
2009-12-13 19:01:46 +01:00
|
|
|
|
2012-03-22 19:44:06 +01:00
|
|
|
Other C-Library Header Files.
|
2009-12-14 16:46:55 +01:00
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
When a GCC toolchain is built, it must be built against a C library.
|
|
|
|
The compiler together with the contents of the C library completes the
|
|
|
|
C language definition and provides the complete C development
|
|
|
|
environment. NuttX provides its own, built-in C library. So the
|
|
|
|
complete, consistent C language definition for use with NuttX comes from
|
|
|
|
the combination of the compiler and the header files provided by the
|
|
|
|
NuttX C library.
|
|
|
|
|
|
|
|
When a GCC toolchain is built, it incorporates the C library header
|
|
|
|
files into the compiler internal directories and, in this way, the C
|
|
|
|
library really becomes a part of the toolchain. If you use the NuttX
|
|
|
|
buildroot toolchain as described below under under "NuttX Buildroot
|
|
|
|
Toolchain", your GCC toolchain will build against the NuttX C library
|
|
|
|
and will incorporate the NuttX C library header files as part of the
|
|
|
|
toolchain.
|
|
|
|
|
|
|
|
If you use some other, third-party tool chain, this will not be the
|
|
|
|
case, however. Those toolchains were probably built against some
|
|
|
|
other, incompatible C library distribution (such as newlib). Those
|
|
|
|
tools will have incorporated the incompatible C library header files
|
|
|
|
as part of the toolchain. These incompatible header files must *not*
|
|
|
|
be used with NuttX because the will conflict with definitions in the
|
|
|
|
NuttX built-in C-Library. For such toolchains that include header
|
|
|
|
files from a foreign C-Library, NuttX must be compiled without using
|
|
|
|
the standard header files that are distributed with your toolchain.
|
|
|
|
This prevents including conflicting, incompatible header files such
|
|
|
|
as stdio.h.
|
|
|
|
|
|
|
|
The math.h and stdarg.h are probably the two most trouble some header
|
|
|
|
files to deal with. These troublesome header files are discussed in
|
|
|
|
more detail below.
|
2009-12-14 16:46:55 +01:00
|
|
|
|
2012-03-22 19:44:06 +01:00
|
|
|
Header Files Provided by Your Toolchain.
|
|
|
|
|
2012-07-08 16:50:43 +02:00
|
|
|
Certain header files, such as setjmp.h, stdarg.h, and math.h, may still
|
2012-04-07 16:08:37 +02:00
|
|
|
be needed from your toolchain and your compiler may not, however, be able
|
2012-03-22 19:44:06 +01:00
|
|
|
to find these if you compile NuttX without using standard header file.
|
|
|
|
If that is the case, one solution is to copy those header file from
|
|
|
|
your toolchain into the NuttX include directory.
|
|
|
|
|
|
|
|
Duplicated Header Files.
|
|
|
|
|
|
|
|
There are also a few header files that can be found in the nuttx/include
|
|
|
|
directory which are duplicated by the header files from your toolchain.
|
|
|
|
stdint.h and stdbool.h are examples. If you prefer to use the stdint.h
|
|
|
|
and stdbool.h header files from your toolchain, those could be copied
|
|
|
|
into the nuttx/include/ directory. Using most other header files from
|
|
|
|
your toolchain would probably cause errors.
|
|
|
|
|
|
|
|
math.h
|
|
|
|
|
|
|
|
Even though you should not use a foreign C-Library, you may still need
|
|
|
|
to use other, external libraries with NuttX. In particular, you may
|
2012-10-30 15:32:52 +01:00
|
|
|
need to use the math library, libm.a. NuttX supports a generic, built-in
|
|
|
|
math library that can be enabled using CONFIG_LIBM=y. However, you may
|
|
|
|
still want to use a higher performance external math library that has
|
|
|
|
been tuned for your CPU. Sometimes such such tuned math libraries are
|
|
|
|
bundled with your toolchain.
|
|
|
|
|
|
|
|
The math libary header file, math.h, is a then special case. If you do
|
|
|
|
nothing, the standard math.h header file that is provided with your
|
|
|
|
toolchain will be used.
|
2012-04-07 16:08:37 +02:00
|
|
|
|
|
|
|
If you have a custom, architecture specific math.h header file, then
|
|
|
|
that header file should be placed at arch/<cpu>/include/math.h. There
|
|
|
|
is a stub math.h header file located at include/nuttx/math.h. This stub
|
|
|
|
header file can be used to "redirect" the inclusion to an architecture-
|
|
|
|
specific math.h header file. If you add an architecture specific math.h
|
|
|
|
header file then you should also define CONFIG_ARCH_MATH_H=y in your
|
|
|
|
NuttX Configuration file. If CONFIG_ARCH_MATH_H is selected, then the
|
|
|
|
top-level Makefile will copy the stub math.h header file from
|
2013-09-26 00:54:39 +02:00
|
|
|
include/nuttx/math.h to include/math.h where it will become the system
|
2012-04-07 16:08:37 +02:00
|
|
|
math.h header file. The stub math.h header file does nothing other
|
2014-04-24 20:44:30 +02:00
|
|
|
than to include that architecture-specific math.h header file as the
|
2012-04-07 16:08:37 +02:00
|
|
|
system math.h header file.
|
2009-12-03 18:24:42 +01:00
|
|
|
|
2012-10-30 15:32:52 +01:00
|
|
|
float.h
|
|
|
|
|
|
|
|
If you enable the generic, built-in math library, then that math library
|
|
|
|
will expect your toolchain to provide the standard float.h header file.
|
|
|
|
The float.h header file defines the properties of your floating point
|
|
|
|
implementation. It would always be best to use your toolchain's float.h
|
2014-04-24 20:44:30 +02:00
|
|
|
header file but if none is available, a default float.h header file will
|
2012-10-30 15:32:52 +01:00
|
|
|
provided if this option is selected. However, there is no assurance that
|
|
|
|
the settings in this float.h are actually correct for your platform!
|
|
|
|
|
2012-07-08 16:50:43 +02:00
|
|
|
stdarg.h
|
|
|
|
|
2013-04-04 19:34:01 +02:00
|
|
|
In most cases, the correct version of stdarg.h is the version provided
|
|
|
|
with your toolchain. However, sometimes there are issues with with
|
|
|
|
using your toolchains stdarg.h. For example, it may attempt to draw in
|
|
|
|
header files that do not exist in NuttX or perhaps the header files that
|
|
|
|
is uses are not compatible with the NuttX header files. In those cases,
|
|
|
|
you can use an architecture-specific stdarg.h header file by defining
|
|
|
|
CONFIG_ARCH_STDARG_H=y.
|
|
|
|
|
|
|
|
See the discussion above for the math.h header. This setting works
|
|
|
|
exactly the same for the stdarg.h header file.
|
2012-07-08 16:50:43 +02:00
|
|
|
|
2009-10-24 15:20:19 +02:00
|
|
|
CONFIGURING NUTTX
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
Instantiating "Canned" Configurations
|
|
|
|
-------------------------------------
|
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
"Canned" NuttX configuration files are retained in:
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
configs/<board-name>/<config-dir>
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
Where <board-name> is the name of your development board and <config-dir>
|
|
|
|
is the name of the sub-directory containing a specific configuration for
|
|
|
|
that board. Configuring NuttX requires only copying three files from the
|
|
|
|
<config-dir> to the directory where you installed NuttX (TOPDIR) (and
|
|
|
|
sometimes one additional file to the directory the NuttX application
|
|
|
|
package (APPSDIR)):
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
Copy configs/<board-name>/<config-dir>/Make.def to ${TOPDIR}/Make.defs
|
2012-03-22 19:44:06 +01:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
Make.defs describes the rules needed by you tool chain to compile
|
|
|
|
and link code. You may need to modify this file to match the
|
|
|
|
specific needs of your toolchain.
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
Copy configs/<board-name>/<config-dir>/setenv.sh to ${TOPDIR}/setenv.sh
|
2012-03-22 19:44:06 +01:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
setenv.sh is an optional convenience file that I use to set
|
|
|
|
the PATH variable to the toolchain binaries. You may chose to
|
|
|
|
use setenv.sh or not. If you use it, then it may need to be
|
|
|
|
modified to include the path to your toolchain binaries.
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
Copy configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
|
2012-03-22 19:44:06 +01:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
The defconfig file holds the actual build configuration. This
|
|
|
|
file is included by all other make files to determine what is
|
|
|
|
included in the build and what is not. This file is also used
|
|
|
|
to generate a C configuration header at include/nuttx/config.h.
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
General information about configuring NuttX can be found in:
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
${TOPDIR}/configs/README.txt
|
|
|
|
${TOPDIR}/configs/<board-name>/README.txt
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
There is a configuration script in the tools/ directory that makes this
|
|
|
|
easier. It is used as follows:
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
cd ${TOPDIR}/tools
|
|
|
|
./configure.sh <board-name>/<config-dir>
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
There is an alternative Windows batch file that can be used in the
|
|
|
|
windows native environment like:
|
2013-01-04 22:37:31 +01:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
cd ${TOPDIR}\tools
|
|
|
|
configure.bat <board-name>\<config-dir>
|
2013-01-04 22:37:31 +01:00
|
|
|
|
2014-10-11 20:01:33 +02:00
|
|
|
See tools/README.txt for more information about these scripts.
|
|
|
|
|
|
|
|
Refreshing Configurations
|
|
|
|
-------------------------
|
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
Configurations can get out of date. As new configuration settings are
|
|
|
|
added or removed or as dependencies between configuration settings
|
|
|
|
change, the contents of a default configuration can become out of synch
|
2014-12-26 14:11:07 +01:00
|
|
|
with the build systems. Hence, it is a good practice to "refresh" each
|
2014-12-28 20:28:14 +01:00
|
|
|
configuration after configuring and before making. To refresh the
|
|
|
|
configuration, use the NuttX Configuration Tool like this:
|
2014-10-11 20:01:33 +02:00
|
|
|
|
|
|
|
make oldconfig
|
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
AFTER you have instantiated the NuttX configuration as described above.
|
|
|
|
The configuration step copied the .config file into place in the top-level
|
|
|
|
NuttX directory; 'make oldconfig' step will then operate on that .config
|
|
|
|
file to bring it up-to-date.
|
|
|
|
|
|
|
|
If you configuration is out of date, you will be prompted by 'make oldconfig'
|
|
|
|
to resolve the issues detected by the configuration tool, that is, to
|
|
|
|
provide values for the new configuration options in the build system. Doing
|
|
|
|
this can save you a lot of problems down the road due to obsolete settings in
|
|
|
|
the default board configuration file. The NuttX configuration tool is
|
|
|
|
discussed in more detail in the following paragraph.
|
2013-01-04 22:37:31 +01:00
|
|
|
|
2014-12-28 17:42:19 +01:00
|
|
|
Confused about what the correct value for a new configuration item should
|
|
|
|
be? Enter ? in response to the 'make oldconfig' prompt and it will show
|
|
|
|
you the help text that goes with the option.
|
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
NuttX Configuration Tool
|
|
|
|
------------------------
|
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
An automated tool has been incorported to support re-configuration
|
|
|
|
of NuttX. This automated tool is based on the kconfig-frontends
|
|
|
|
application available at http://ymorin.is-a-geek.org/projects/kconfig-frontends
|
2012-04-07 21:38:13 +02:00
|
|
|
(A snapshot of this tool is also available at ../misc/tools). This
|
2014-01-03 22:49:00 +01:00
|
|
|
application provides a tool called 'kconfig-mconf' that is used by
|
|
|
|
the NuttX top-level Makefile. The following make target is provided:
|
2012-04-07 21:38:13 +02:00
|
|
|
|
|
|
|
make menuconfig
|
|
|
|
|
2013-01-28 02:44:45 +01:00
|
|
|
This make target will bring up NuttX configuration menus.
|
|
|
|
|
|
|
|
WARNING: Never do 'make menuconfig' on a configuration that has
|
|
|
|
not been converted to use the kconfig-frontends tools! This will
|
2013-12-04 14:46:10 +01:00
|
|
|
damage your configuration (see
|
2013-01-28 02:44:45 +01:00
|
|
|
http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig).
|
|
|
|
|
2014-12-28 20:28:14 +01:00
|
|
|
How do we tell a new configuration from an old one? See "Incompatibilities
|
|
|
|
with Older Configurations" below.
|
|
|
|
|
2013-01-28 02:44:45 +01:00
|
|
|
The 'menuconfig' make target depends on two things:
|
2012-04-07 21:38:13 +02:00
|
|
|
|
|
|
|
1. The Kconfig configuration data files that appear in almost all
|
|
|
|
NuttX directories. These data files are the part that is still
|
|
|
|
under development (patches are welcome!). The Kconfig files
|
|
|
|
contain configuration information for the configuration settings
|
|
|
|
relevant to the directory in which the Kconfig file resides.
|
|
|
|
|
|
|
|
NOTE: For a description of the syntax of this configuration file,
|
|
|
|
see ../misc/tools/kconfig-language.txt.
|
|
|
|
|
2014-01-03 22:49:00 +01:00
|
|
|
2. The 'kconfig-mconf' tool. 'kconfig-mconf' is part of the
|
|
|
|
kconfig-frontends package. You can download that package from
|
|
|
|
the website http://ymorin.is-a-geek.org/projects/kconfig-frontends
|
|
|
|
or you can use the snapshot in ../misc/tools.
|
2012-04-07 21:38:13 +02:00
|
|
|
|
2014-01-03 22:49:00 +01:00
|
|
|
Building kconfig-frontends under Linux may be as simple as
|
|
|
|
'configure; make; make install' but there may be some build
|
|
|
|
complexities, especially if you are building under Cygwin. See
|
|
|
|
the more detailed build instructions at ../misc/tools/README.txt
|
2012-04-07 21:38:13 +02:00
|
|
|
|
2014-01-03 22:49:00 +01:00
|
|
|
The 'make install' step will, by default, install the 'kconfig-mconf'
|
2012-04-07 21:38:13 +02:00
|
|
|
tool at /usr/local/bin/mconf. Where ever you choose to
|
2014-01-03 22:49:00 +01:00
|
|
|
install 'kconfig-mconf', make certain that your PATH variable includes
|
2012-04-07 21:38:13 +02:00
|
|
|
a path to that installation directory.
|
|
|
|
|
2014-01-03 22:49:00 +01:00
|
|
|
The kconfig-frontends tools will not build in a native Windows
|
|
|
|
environment directly "out-of-the-box". For the Windows native
|
|
|
|
case, you should should the modified version of kconfig-frontends
|
|
|
|
that can be found at
|
|
|
|
http://uvc.de/posts/linux-kernel-configuration-tool-mconf-under-windows.html
|
|
|
|
|
2013-01-03 14:39:16 +01:00
|
|
|
The basic configuration order is "bottom-up":
|
|
|
|
|
|
|
|
- Select the build environment,
|
|
|
|
- Select the processor,
|
|
|
|
- Select the board,
|
|
|
|
- Select the supported peripherals
|
|
|
|
- Configure the device drivers,
|
|
|
|
- Configure the application options on top of this.
|
|
|
|
|
|
|
|
This is pretty straight forward for creating new configurations
|
|
|
|
but may be less intuitive for modifying existing configurations.
|
|
|
|
|
2014-04-24 20:44:30 +02:00
|
|
|
If you have an environment that supports the Qt or GTK graphical systems
|
2014-01-03 22:49:00 +01:00
|
|
|
(probably KDE or gnome, respectively), then you can also build the
|
|
|
|
graphical kconfig-frontends, kconfig-qconf and kconfig-gconf. In
|
|
|
|
these case, you can start the graphical configurator with either:
|
|
|
|
|
|
|
|
make qconfig
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
make gconfig
|
|
|
|
|
2014-12-24 15:15:21 +01:00
|
|
|
Finding Selections in the Configuration Menus
|
|
|
|
---------------------------------------------
|
|
|
|
|
|
|
|
The NuttX configuration options have gotten complex and it can be very
|
|
|
|
difficult to find options in the menu trees if you are not sure where
|
|
|
|
to look. The "basic configuration order" describe above can help to
|
|
|
|
narrow things down.
|
|
|
|
|
|
|
|
But if you know exactly what configuration setting you want to select,
|
|
|
|
say CONFIG_XYZ, but not where to find it, then the 'make memconfig'
|
|
|
|
version of the tool offers some help: By pressing the '/' key, the
|
|
|
|
tool will bring up a menu that will allow you to search for a
|
|
|
|
configuration item. Just enter the string CONFIG_XYZ and press 'ENTER'.
|
|
|
|
It will show you not only where to find the configuration item, but
|
|
|
|
also all of the dependencies related to the configuration item.
|
|
|
|
|
|
|
|
Comparing Two Configurations
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
If you try to compare to configurations using 'diff', you will probably
|
|
|
|
not be happy with the result. There are superfluous things added to
|
|
|
|
the configuration files that makes comparisons with the human eye
|
|
|
|
difficult.
|
|
|
|
|
|
|
|
There is a tool at nuttx/tools/cmpconfig.c that can be build to simplify
|
|
|
|
these comparisons. The output from this difference tools will show only
|
|
|
|
the meaningful differences between two configuration files. This tools
|
|
|
|
built as follows:
|
|
|
|
|
|
|
|
cd nuttx/tools
|
|
|
|
make -f Makefile.host
|
|
|
|
|
|
|
|
This will crate a program called 'cmpconfig' or 'comconfig.exe' on Windows.
|
|
|
|
|
2014-12-26 14:11:07 +01:00
|
|
|
Why would you want to compare two configuration files? Here are a few
|
2014-12-24 15:15:21 +01:00
|
|
|
of reasons why I do this:
|
|
|
|
|
|
|
|
1. When I create a new configuration I usually base it on an older
|
|
|
|
configuration and I want to know, "What are the options that I need to
|
|
|
|
change to add the new feature to the older configurations?" For example,
|
2014-12-26 14:11:07 +01:00
|
|
|
suppose that I have a boardA/nsh configuration and I want to create a
|
2014-12-24 15:15:21 +01:00
|
|
|
boardA/nxwm configuration. Suppose I already have boardB/nsh and
|
|
|
|
boardB/nxwm configurations. Then by comparing the boardB/nsh with the
|
|
|
|
boardB/nxwm I can see the modifications that I would need to make to my
|
|
|
|
boardA/nsh to create a new boardA/nxwm.
|
|
|
|
|
|
|
|
2. But the most common reason that I use the 'cmpconfig' program to to
|
|
|
|
check the results of "refreshing" a configuration with 'make oldconfig'
|
2014-12-26 14:11:07 +01:00
|
|
|
(see the paragraph "Refreshing Configurations" above). The 'make
|
|
|
|
oldconfig' command will make changes to my configuration and using
|
|
|
|
'cmpconfig', I can see precisely what those changes were and if any
|
|
|
|
should be of concern to me.
|
2014-12-24 15:15:21 +01:00
|
|
|
|
2014-12-26 14:11:07 +01:00
|
|
|
3. The 'cmpconfig' tool can also be useful when converting older, legacy
|
|
|
|
manual configurations to the current configurations based on the
|
|
|
|
kconfig-frontends tools. See the following paragraph.
|
2013-01-28 02:44:45 +01:00
|
|
|
|
2013-01-03 14:39:16 +01:00
|
|
|
Incompatibilities with Older Configurations
|
|
|
|
-------------------------------------------
|
|
|
|
|
|
|
|
***** WARNING *****
|
|
|
|
|
2014-03-06 20:00:50 +01:00
|
|
|
The current NuttX build system supports *only* the new configuration
|
2014-12-26 14:11:07 +01:00
|
|
|
files generated using the kconfig-frontends tools. Support for the
|
|
|
|
older, legacy, manual configurations was eliminated in NuttX 7.0; all
|
|
|
|
configuration must now be done using the kconfig-frontends tool. The
|
|
|
|
older manual configurations and the new kconfig-frontends configurations
|
|
|
|
are not compatible. Old legacy configurations can *not* be used
|
|
|
|
with the kconfig-frontends tool and, hence, cannot be used with releases
|
|
|
|
of NuttX 7.0 and beyond:
|
2014-03-06 20:00:50 +01:00
|
|
|
|
|
|
|
If you run 'make menuconfig' with a legacy configuration the resulting
|
2013-01-03 14:39:16 +01:00
|
|
|
configuration will probably not be functional.
|
|
|
|
|
|
|
|
Q: How can I tell if a configuration is a new kconfig-frontends
|
|
|
|
configuration or an older, manual configuration?
|
|
|
|
|
2014-03-06 20:00:50 +01:00
|
|
|
A: Only old, manual configurations will have an appconfig file
|
2013-01-03 14:39:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
Q: How can I convert a older, manual configuration into a new,
|
|
|
|
kconfig-frontends toolchain.
|
|
|
|
|
2014-03-06 20:00:50 +01:00
|
|
|
A: Refer to http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig
|
2013-01-03 14:39:16 +01:00
|
|
|
|
2014-12-26 14:11:07 +01:00
|
|
|
***** WARNING *****
|
|
|
|
|
|
|
|
As described above, whenever you use a configuration, you really should
|
|
|
|
always refresh the configuration the following command *before* you make
|
|
|
|
NuttX:
|
|
|
|
|
|
|
|
make oldconfig
|
|
|
|
|
|
|
|
This will make sure that the configuration is up-to-date in the event that
|
|
|
|
it has lapsed behind the current NuttX development (see the paragraph
|
|
|
|
"Refreshing Configurations" above). But this only works with *new*
|
|
|
|
configuration files created with the kconfig-frontends tools
|
|
|
|
|
|
|
|
Never do 'make oldconfig' (OR 'make menuconfig') on a configuration that
|
|
|
|
has not been converted to use the kconfig-frontends tools! This will
|
|
|
|
damage your configuration (see
|
|
|
|
http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig).
|
|
|
|
|
2012-12-23 18:32:41 +01:00
|
|
|
NuttX Configuration Tool under DOS
|
|
|
|
----------------------------------
|
2012-12-22 17:47:02 +01:00
|
|
|
|
2012-12-23 18:32:41 +01:00
|
|
|
Recent versions of NuttX support building NuttX from a native Windows
|
2013-01-10 01:45:11 +01:00
|
|
|
console window (see "Native Windows Build" below). But kconfig-frontends
|
2014-01-03 22:49:00 +01:00
|
|
|
is a Linux tool. At one time this was a problem for Windows users, but
|
|
|
|
now there is a specially modified version of the kconfig-frontends tools
|
|
|
|
that can be used:
|
|
|
|
http://uvc.de/posts/linux-kernel-configuration-tool-mconf-under-windows.html
|
2012-12-22 17:47:02 +01:00
|
|
|
|
2014-01-03 22:49:00 +01:00
|
|
|
It is also possible to use the version of kconfig-frontends built
|
|
|
|
under Cygwin outside of the Cygwin "sandbox" in a native Windows
|
|
|
|
environment:
|
2012-12-22 17:47:02 +01:00
|
|
|
|
|
|
|
1. You can run the configuration tool using Cygwin. However, the
|
|
|
|
Cygwin Makefile.win will complain so to do this will, you have
|
|
|
|
to manually edit the .config file:
|
|
|
|
|
|
|
|
a. Delete the line: CONFIG_WINDOWS_NATIVE=y
|
|
|
|
b. Change the apps/ directory path, CONFIG_APPS_DIR to use Unix
|
|
|
|
style delimiters. For example, change "..\apps" to "../apps"
|
|
|
|
|
|
|
|
And of course, after you use the configuration tool you need to
|
|
|
|
restore CONFIG_WINDOWS_NATIVE=y and the correct CONFIG_APPS_DIR.
|
|
|
|
|
2013-08-27 17:40:19 +02:00
|
|
|
2) You can, with some effort, run the Cygwin kconfig-mconf tool
|
2013-01-10 01:45:11 +01:00
|
|
|
directly in the Windows console window. In this case, you do not
|
|
|
|
have to modify the .config file, but there are other complexities:
|
2012-12-22 17:47:02 +01:00
|
|
|
|
|
|
|
a. You need to temporarily set the Cgywin directories in the PATH
|
2013-01-09 13:55:13 +01:00
|
|
|
variable then run kconfig-mconf manually like:
|
2012-12-22 17:47:02 +01:00
|
|
|
|
2013-01-09 13:55:13 +01:00
|
|
|
kconfig-mconf Kconfig
|
2012-12-22 17:47:02 +01:00
|
|
|
|
2014-01-03 22:49:00 +01:00
|
|
|
There is a Windows batch file at tools/kconfig.bat that automates
|
2012-12-22 17:47:02 +01:00
|
|
|
these steps:
|
|
|
|
|
|
|
|
tools/kconfig menuconfig
|
|
|
|
|
|
|
|
b. There is an issue with accessing DOS environment variables from
|
2013-01-10 01:45:11 +01:00
|
|
|
the Cygwin kconfig-mconf running in the Windows console. The
|
2013-01-09 13:55:13 +01:00
|
|
|
following change to the top-level Kconfig file seems to work
|
|
|
|
around these problems:
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
config APPSDIR
|
|
|
|
string
|
|
|
|
- option env="APPSDIR"
|
|
|
|
+ default "../apps"
|
|
|
|
|
2010-11-06 22:48:13 +01:00
|
|
|
TOOLCHAINS
|
|
|
|
^^^^^^^^^^
|
|
|
|
|
|
|
|
Cross-Development Toolchains
|
2012-04-07 21:38:13 +02:00
|
|
|
----------------------------
|
2010-11-06 22:48:13 +01:00
|
|
|
|
|
|
|
In order to build NuttX for your board, you will have to obtain a cross-
|
|
|
|
compiler to generate code for your target CPU. For each board,
|
|
|
|
configuration, there is a README.txt file (at configs/<board-name>/README.txt).
|
|
|
|
That README file contains suggestions and information about appropriate
|
|
|
|
tools and development environments for use with your board.
|
|
|
|
|
|
|
|
In any case, the script, setenv.sh that was deposited in the top-
|
|
|
|
level directory when NuttX was configured should be edited to set
|
|
|
|
the path to where you installed the toolchain. The use of setenv.sh
|
|
|
|
is optional but can save a lot of confusion in the future.
|
|
|
|
|
|
|
|
NuttX Buildroot Toolchain
|
2012-04-07 21:38:13 +02:00
|
|
|
-------------------------
|
2010-11-06 22:48:13 +01:00
|
|
|
|
|
|
|
For many configurations, a DIY set of tools is available for NuttX. These
|
|
|
|
tools can be downloaded from the NuttX SourceForge file repository. After
|
|
|
|
unpacking the buildroot tarball, you can find instructions for building
|
|
|
|
the tools in the buildroot/configs/README.txt file.
|
|
|
|
|
|
|
|
Check the README.txt file in the configuration director for your board
|
|
|
|
to see if you can use the buildroot toolchain with your board (this
|
|
|
|
README.txt file is located in configs/<board-name>/README.txt).
|
|
|
|
|
|
|
|
This toolchain is available for both the Linux and Cygwin development
|
|
|
|
environments.
|
|
|
|
|
2012-04-07 21:38:13 +02:00
|
|
|
Advantages: (1) NuttX header files are built into the tool chain,
|
2014-04-24 20:44:30 +02:00
|
|
|
and (2) related support tools like NXFLAT tools, the ROMFS
|
|
|
|
genromfs tools, and the kconfig-frontends tools can be built into your
|
|
|
|
toolchain.
|
2012-04-07 21:38:13 +02:00
|
|
|
|
|
|
|
Disadvantages: This tool chain is not was well supported as some other
|
|
|
|
toolchains. GNU tools are not my priority and so the buildroot tools
|
2013-02-01 00:29:34 +01:00
|
|
|
often get behind. For example, until recently there was no EABI support
|
|
|
|
in the NuttX buildroot toolchain for ARM.
|
|
|
|
|
|
|
|
NOTE: For Cortex-M3/4, there are OABI and EABI versions of the buildroot
|
|
|
|
toolchains. If you are using the older OABI toolchain the prefix for
|
2014-10-15 18:57:04 +02:00
|
|
|
the tools will be arm-nuttx-elf-; for the EABI toolchain the prefix will
|
2013-02-01 00:29:34 +01:00
|
|
|
be arm-nuttx-eabi-. If you are using the older OABI toolchain with
|
|
|
|
an ARM Cortex-M3/4, you will need to set CONFIG_ARMV7M_OABI_TOOLCHAIN
|
|
|
|
in the .config file in order to pick the right tool prefix.
|
2012-04-07 21:38:13 +02:00
|
|
|
|
2013-02-01 15:53:38 +01:00
|
|
|
If the make system ever picks the wrong prefix for your toolchain, you
|
|
|
|
can always specify the prefix on the command to override the default
|
|
|
|
like:
|
|
|
|
|
|
|
|
make CROSSDEV=arm-nuttx-elf
|
|
|
|
|
2011-08-27 16:58:42 +02:00
|
|
|
SHELLS
|
|
|
|
^^^^^^
|
|
|
|
|
|
|
|
The NuttX build relies on some shell scripts. Some are inline in the
|
2014-04-24 20:44:30 +02:00
|
|
|
Makefiles and many are executable scripts in the tools/. directory. The
|
2011-08-27 16:58:42 +02:00
|
|
|
scripts were all developed using bash and many contain bash shell
|
|
|
|
dependencies.
|
|
|
|
|
|
|
|
Most of the scripts begin with #!/bin/bash to specifically select the
|
|
|
|
bash shell. Some still have #!/bin/sh but I haven't heard any complaints
|
|
|
|
so these must not have bash dependencies.
|
|
|
|
|
|
|
|
There are two shell issues that I have heard of:
|
|
|
|
|
|
|
|
1. Linux where /bin/sh refers to an incompatible shell (like ksh or csh).
|
|
|
|
|
2014-04-24 20:44:30 +02:00
|
|
|
In this case, bash is probably available and the #!/bin/bash at the
|
2011-08-27 16:58:42 +02:00
|
|
|
beginning of the file should do the job. If any scripts with #!/bin/sh
|
2014-10-28 02:16:45 +01:00
|
|
|
fail, try changing that to #!/bin/bash and let me know about the change.
|
2011-08-27 16:58:42 +02:00
|
|
|
|
|
|
|
2. FreeBSD with the Bourne Shell and no bash shell.
|
|
|
|
|
|
|
|
The other, reverse case has also been reported on FreeBSD setups that
|
|
|
|
have the Bourne shell, but not bash. In this base, #!/bin/bash fails
|
|
|
|
but #!/bin/sh works okay. My recommendation in this case is to create
|
|
|
|
a symbolic link at /bin/bash that refers to the Bourne shell.
|
|
|
|
|
|
|
|
There may still be issues, however, with certain the bash-centric scripts
|
|
|
|
that will require modifications.
|
|
|
|
|
2009-10-24 15:20:19 +02:00
|
|
|
BUILDING NUTTX
|
|
|
|
^^^^^^^^^^^^^^
|
|
|
|
|
2010-11-07 00:41:08 +01:00
|
|
|
Building
|
2012-04-07 21:38:13 +02:00
|
|
|
--------
|
2010-11-07 00:41:08 +01:00
|
|
|
|
|
|
|
NuttX builds in-place in the source tree. You do not need to create
|
|
|
|
any special build directories. Assuming that your Make.defs is setup
|
|
|
|
properly for your tool chain and that setenv.sh contains the path to where
|
|
|
|
your cross-development tools are installed, the following steps are all that
|
2011-08-27 16:58:42 +02:00
|
|
|
are required to build NuttX:
|
2010-11-07 00:41:08 +01:00
|
|
|
|
|
|
|
cd ${TOPDIR}
|
|
|
|
. ./setenv.sh
|
|
|
|
make
|
|
|
|
|
|
|
|
At least one configuration (eagle100) requires additional command line
|
|
|
|
arguments on the make command. Read ${TOPDIR}/configs/<board-name>/README.txt
|
|
|
|
to see if that applies to your target.
|
|
|
|
|
2013-12-04 14:46:10 +01:00
|
|
|
Re-building
|
2012-04-07 21:38:13 +02:00
|
|
|
-----------
|
2010-11-07 00:41:08 +01:00
|
|
|
|
|
|
|
Re-building is normally simple -- just type make again.
|
|
|
|
|
|
|
|
But there are some things that can "get you" when you use the Cygwin
|
|
|
|
development environment with Windows native tools. The native Windows
|
|
|
|
tools do not understand Cygwin's symbolic links, so the NuttX make system
|
|
|
|
does something weird: It copies the configuration directories instead of
|
|
|
|
linking to them (it could, perhaps, use the NTFS 'mklink' command, but it
|
|
|
|
doesn't).
|
|
|
|
|
|
|
|
A consequence of this is that you can easily get confused when you edit
|
|
|
|
a file in one of the linked (i.e., copied) directories, re-build NuttX,
|
|
|
|
and then not see your changes when you run the program. That is because
|
|
|
|
build is still using the version of the file in the copied directory, not
|
|
|
|
your modified file! To work around this annoying behavior, do the
|
|
|
|
following when you re-build:
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2010-11-07 00:41:08 +01:00
|
|
|
make clean_context all
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2011-08-27 16:58:42 +02:00
|
|
|
This 'make' command will remove of the copied directories, re-copy them,
|
2010-11-07 00:41:08 +01:00
|
|
|
then make NuttX.
|
2009-10-24 15:20:19 +02:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
Build Targets and Options
|
|
|
|
-------------------------
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
Build Targets:
|
2011-12-31 17:53:05 +01:00
|
|
|
Below is a summary of the build targets available in the top-level
|
|
|
|
NuttX Makefile:
|
|
|
|
|
|
|
|
all
|
|
|
|
|
|
|
|
The default target builds the NuttX executable in the selected output
|
|
|
|
formats.
|
|
|
|
|
|
|
|
clean
|
|
|
|
|
|
|
|
Removes derived object files, archives, executables, and temporary
|
|
|
|
files, but retains the configuration and context files and directories.
|
|
|
|
|
|
|
|
distclean
|
|
|
|
|
|
|
|
Does 'clean' then also removes all configuration and context files.
|
|
|
|
This essentially restores the directory structure to its original,
|
|
|
|
unconfigured stated.
|
|
|
|
|
|
|
|
Application housekeeping targets. The APPDIR variable refers to the user
|
|
|
|
application directory. A sample apps/ directory is included with NuttX,
|
|
|
|
however, this is not treated as part of NuttX and may be replaced with a
|
|
|
|
different application directory. For the most part, the application
|
|
|
|
directory is treated like any other build directory in the Makefile script.
|
|
|
|
However, as a convenience, the following targets are included to support
|
|
|
|
housekeeping functions in the user application directory from the NuttX
|
|
|
|
build directory.
|
|
|
|
|
|
|
|
apps_clean
|
|
|
|
|
|
|
|
Perform the clean operation only in the user application directory
|
|
|
|
|
|
|
|
apps_distclean
|
|
|
|
|
|
|
|
Perform the distclean operation only in the user application directory.
|
|
|
|
The apps/.config file is preserved so that this is not a "full" distclean
|
|
|
|
but more of a configuration "reset."
|
|
|
|
|
|
|
|
export
|
|
|
|
|
|
|
|
The export target will package the NuttX libraries and header files into
|
|
|
|
an exportable package. Caveats: (1) These needs some extension for the KERNEL
|
|
|
|
build. (2) The logic in tools/mkexport.sh only supports GCC and, for example,
|
|
|
|
explicitly assumes that the archiver is 'ar'
|
|
|
|
|
|
|
|
download
|
|
|
|
|
|
|
|
This is a helper target that will rebuild NuttX and download it to the target
|
|
|
|
system in one step. The operation of this target depends completely upon
|
|
|
|
implementation of the DOWNLOAD command in the user Make.defs file. It will
|
|
|
|
generate an error an error if the DOWNLOAD command is not defined.
|
|
|
|
|
|
|
|
The following targets are used internally by the make logic but can be invoked
|
|
|
|
from the command under certain conditions if necessary.
|
|
|
|
|
|
|
|
depend
|
|
|
|
|
|
|
|
Create build dependencies. (NOTE: There is currently no support for build
|
|
|
|
dependencies under Cygwin using Windows-native toolchains.)
|
|
|
|
|
|
|
|
context
|
|
|
|
|
|
|
|
The context target is invoked on each target build to assure that NuttX is
|
|
|
|
properly configured. The basic configuration steps include creation of the
|
|
|
|
the config.h and version.h header files in the include/nuttx directory and
|
|
|
|
the establishment of symbolic links to configured directories.
|
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
clean_context
|
|
|
|
|
|
|
|
This is part of the distclean target. It removes all of the header files
|
|
|
|
and symbolic links created by the context target.
|
|
|
|
|
|
|
|
Build Options:
|
2014-04-24 20:44:30 +02:00
|
|
|
Of course, the value any make variable an be overridden from the make command
|
2012-09-18 16:06:57 +02:00
|
|
|
line. However, there is one particular variable assignment option that may
|
|
|
|
be useful to you:
|
|
|
|
|
|
|
|
V=1
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
This is the build "verbosity flag." If you specify V=1 on the make command
|
|
|
|
line, you will see the exact commands used in the build. This can be very
|
|
|
|
useful when adding new boards or tracking down compile time errors and
|
2012-09-18 20:32:31 +02:00
|
|
|
warnings (Contributed by Richard Cochran).
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2012-11-11 19:36:28 +01:00
|
|
|
Native Windows Build
|
|
|
|
--------------------
|
|
|
|
|
2014-04-24 20:44:30 +02:00
|
|
|
The beginnings of a Windows native build are in place but still not often
|
|
|
|
used as of this writing. The windows native build logic initiated
|
2012-12-15 17:03:45 +01:00
|
|
|
if CONFIG_WINDOWS_NATIVE=y is defined in the NuttX configuration file:
|
2012-11-11 19:36:28 +01:00
|
|
|
|
|
|
|
This build:
|
|
|
|
|
|
|
|
- Uses all Windows style paths
|
|
|
|
- Uses primarily Windows batch commands from cmd.exe, with
|
2012-12-15 17:03:45 +01:00
|
|
|
- A few extensions from GNUWin32
|
2012-11-11 19:36:28 +01:00
|
|
|
|
|
|
|
In this build, you cannot use a Cygwin or MSYS shell. Rather the build must
|
2013-01-10 01:45:11 +01:00
|
|
|
be performed in a Windows console window. Here is a better terminal than the
|
|
|
|
standard issue, CMD.exe terminal: ConEmu which can be downloaded from:
|
2012-11-11 19:36:28 +01:00
|
|
|
http://code.google.com/p/conemu-maximus5/
|
|
|
|
|
|
|
|
Build Tools. The build still relies on some Unix-like commands. I use
|
|
|
|
the GNUWin32 tools that can be downloaded from http://gnuwin32.sourceforge.net/.
|
|
|
|
|
2013-01-05 14:19:53 +01:00
|
|
|
Host Compiler: I use the MingGW GCC compiler which can be downloaded from
|
2012-11-11 19:36:28 +01:00
|
|
|
http://www.mingw.org/. If you are using GNUWin32, then it is recommended
|
|
|
|
the you not install the optional MSYS components as there may be conflicts.
|
|
|
|
|
2012-12-23 18:32:41 +01:00
|
|
|
This capability should still be considered a work in progress because:
|
2013-12-04 14:46:10 +01:00
|
|
|
|
2014-04-24 20:44:30 +02:00
|
|
|
(1) It has not been verified on all targets and tools, and
|
2014-01-20 20:10:30 +01:00
|
|
|
(2) it still lacks some of the creature-comforts of the more mature environments.
|
2013-01-04 22:37:31 +01:00
|
|
|
|
|
|
|
There is an alternative to the setenv.sh script available for the Windows
|
|
|
|
native environment: tools/configure.bat. See tools/README.txt for additional
|
|
|
|
information.
|
2012-12-23 18:32:41 +01:00
|
|
|
|
2012-11-14 00:05:48 +01:00
|
|
|
Installing GNUWin32
|
|
|
|
-------------------
|
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
The Windows native build will depend upon a few Unix-like tools that can be
|
|
|
|
provided either by MSYS or GNUWin32. The GNUWin32 are available from
|
|
|
|
http://gnuwin32.sourceforge.net/. GNUWin32 provides ports of tools with a
|
|
|
|
GPL or similar open source license to modern MS-Windows (Microsoft Windows
|
|
|
|
2000 / XP / 2003 / Vista / 2008 / 7). See
|
|
|
|
http://gnuwin32.sourceforge.net/packages.html for a list of all of the tools
|
|
|
|
available in the GNUWin32 package.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
The SourceForge project is located here:
|
|
|
|
http://sourceforge.net/projects/gnuwin32/. The project is still being
|
|
|
|
actively supported (although some of the Windows ports have gotten very old).
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
Some commercial toolchains include a subset of the GNUWin32 tools in the
|
|
|
|
installation. My recommendation is that you download the GNUWin32 tools
|
|
|
|
directly from the sourceforge.net website so that you will know what you are
|
|
|
|
using and can reproduce your build environment.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
GNUWin32 Installation Steps:
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
The following steps will download and execute the GNUWin32 installer.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
1. Download GetGNUWin32-x.x.x.exe from
|
|
|
|
http://sourceforge.net/projects/getgnuwin32/files/. This is the
|
|
|
|
installer. The current version as of this writing is 0.6.3.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
2. Run the installer.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
3. Accept the license.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
4. Select the installation directory. My recommendation is the
|
|
|
|
directory that contains this README file (<this-directory>).
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
5. After running GetGNUWin32-0.x.x.exe, you will have a new directory
|
|
|
|
<this-directory>/GetGNUWin32
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2013-08-27 17:40:19 +02:00
|
|
|
Note that the GNUWin32 installer didn't install GNUWin32. Instead, it
|
2012-12-22 17:47:02 +01:00
|
|
|
installed another, smarter downloader. That downloader is the GNUWin32
|
|
|
|
package management tool developed by the Open SSL project.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
The following steps probably should be performed from inside a DOS shell.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
6. Change to the directory created by GetGNUWin32-x.x.x.exe
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
cd GetGNUWin32
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
7. Execute the download.bat script. The download.bat script will download
|
|
|
|
about 446 packages! Enough to have a very complete Linux-like environment
|
|
|
|
under the DOS shell. This will take awhile. This step only downloads
|
|
|
|
the packages and the next step will install the packages.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
download
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
8. This step will install the downloaded packages. The argument of the
|
|
|
|
install.bat script is the installation location. C:\gnuwin32 is the
|
|
|
|
standard install location:
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
install C:\gnuwin32
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2012-12-22 17:47:02 +01:00
|
|
|
NOTE: This installation step will install *all* GNUWin32 packages... far
|
|
|
|
more than you will ever need. If disc space is a problem for you, you might
|
|
|
|
need to perform a manual installation of the individual ZIP files that you
|
|
|
|
will find in the <this directory>/GetGNUWin32/packages directory.
|
2012-11-14 00:05:48 +01:00
|
|
|
|
2010-10-08 14:33:31 +02:00
|
|
|
CYGWIN BUILD PROBLEMS
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2011-12-31 17:53:05 +01:00
|
|
|
Strange Path Problems
|
2012-04-07 21:38:13 +02:00
|
|
|
---------------------
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
If you see strange behavior when building under Cygwin then you may have
|
|
|
|
a problem with your PATH variable. For example, if you see failures to
|
|
|
|
locate files that are clearly present, that may mean that you are using
|
|
|
|
the wrong version of a tool. For example, you may not be using Cygwin's
|
|
|
|
'make' program at /usr/bin/make. Try:
|
2010-10-08 14:33:31 +02:00
|
|
|
|
|
|
|
$ which make
|
|
|
|
/usr/bin/make
|
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
When you install some toolchains (such as Yargarto or CodeSourcery tools),
|
|
|
|
they may modify your PATH variable to include a path to their binaries.
|
|
|
|
At that location, they make have GNUWin32 versions of the tools. So you
|
|
|
|
might actually be using a version of make that does not understand Cygwin
|
|
|
|
paths.
|
2010-10-08 14:33:31 +02:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
The solution is either:
|
2010-10-08 14:33:31 +02:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
1. Edit your PATH to remove the path to the GNUWin32 tools, or
|
|
|
|
2. Put /usr/local/bin, /usr/bin, and /bin at the front of your path:
|
2010-10-08 14:33:31 +02:00
|
|
|
|
2012-09-18 16:06:57 +02:00
|
|
|
$ export PATH=/usr/local/bin:/usr/bin:/bin:$PATH
|
2010-10-08 14:33:31 +02:00
|
|
|
|
2011-12-31 17:53:05 +01:00
|
|
|
Window Native Toolchain Issues
|
2012-04-07 21:38:13 +02:00
|
|
|
------------------------------
|
2011-12-31 17:53:05 +01:00
|
|
|
|
|
|
|
There are many popular Windows native toolchains that may be used with NuttX.
|
|
|
|
Examples include CodeSourcery (for Windows), devkitARM, and several vendor-
|
|
|
|
provied toolchains. There are several limitations with using a and Windows
|
|
|
|
based toolchain in a Cygwin environment. The three biggest are:
|
|
|
|
|
|
|
|
1. The Windows toolchain cannot follow Cygwin paths. Path conversions are
|
|
|
|
performed automatically in the Cygwin makefiles using the 'cygpath' utility
|
|
|
|
but you might easily find some new path problems. If so, check out 'cygpath -w'
|
|
|
|
|
|
|
|
2. Windows toolchains cannot follow Cygwin symbolic links. Many symbolic links
|
|
|
|
are used in Nuttx (e.g., include/arch). The make system works around these
|
|
|
|
problems for the Windows tools by copying directories instead of linking them.
|
|
|
|
But this can also cause some confusion for you: For example, you may edit
|
|
|
|
a file in a "linked" directory and find that your changes had no effect.
|
|
|
|
That is because you are building the copy of the file in the "fake" symbolic
|
|
|
|
directory. If you use a Windows toolchain, you should get in the habit of
|
|
|
|
making like this:
|
|
|
|
|
|
|
|
make clean_context all
|
|
|
|
|
|
|
|
An alias in your .bashrc file might make that less painful. The rebuild
|
|
|
|
is not a long as you might think because there is no dependency checking
|
|
|
|
if you are using a native Windows toolchain. That bring us to #3:
|
|
|
|
|
2012-11-13 01:38:59 +01:00
|
|
|
3. Dependencies are not made when using Windows versions of the GCC on a POSIX
|
|
|
|
platform (i.e., Cygwin). This is because the dependencies are generated
|
|
|
|
using Windows paths which do not work with the Cygwin make.
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2012-11-13 01:38:59 +01:00
|
|
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2012-11-13 01:38:59 +01:00
|
|
|
If you are building natively on Windows, then no such conflict exists
|
|
|
|
and the best selection is:
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2013-12-04 14:46:10 +01:00
|
|
|
MKDEP = $(TOPDIR)/tools/mkdeps.exe
|
2011-12-31 17:53:05 +01:00
|
|
|
|
|
|
|
General Pre-built Toolchain Issues
|
|
|
|
|
|
|
|
To continue with the list of "Window Native Toolchain Issues" we can add
|
|
|
|
the following. These, however, are really just issues that you will have
|
|
|
|
if you use any pre-built toolchain (vs. building the NuttX toolchain from
|
|
|
|
the NuttX buildroot package):
|
|
|
|
|
|
|
|
There may be incompatibilities with header files, libraries, and compiler
|
|
|
|
built-in functions at detailed below. For the most part, these issues
|
|
|
|
are handled in the existing make logic. But if you are breaking new ground,
|
2014-10-28 02:16:45 +01:00
|
|
|
then you may encounter these:
|
2011-12-31 17:53:05 +01:00
|
|
|
|
|
|
|
4. Header Files. Most pre-built toolchains will build with a foreign C
|
2013-12-04 14:46:10 +01:00
|
|
|
library (usually newlib, but maybe uClibc or glibc if you are using a
|
2011-12-31 17:53:05 +01:00
|
|
|
Linux toolchain). This means that the header files from the foreign
|
|
|
|
C library will be built into the toolchain. So if you "include <stdio.h>",
|
|
|
|
you will get the stdio.h from the incompatible, foreign C library and
|
|
|
|
not the nuttx stdio.h (at nuttx/include/stdio.h) that you wanted.
|
|
|
|
|
2014-10-15 18:57:04 +02:00
|
|
|
This can cause really confusion in the builds and you must always be
|
2011-12-31 17:53:05 +01:00
|
|
|
sure the -nostdinc is included in the CFLAGS. That will assure that
|
2013-12-04 14:46:10 +01:00
|
|
|
you take the include files only from
|
2011-12-31 17:53:05 +01:00
|
|
|
|
|
|
|
5. Libraries. What was said above header files applies to libraries.
|
|
|
|
You do not want to include code from the libraries of any foreign
|
|
|
|
C libraries built into your toolchain. If this happens you will get
|
2014-10-15 18:57:04 +02:00
|
|
|
perplexing errors about undefined symbols. To avoid these errors,
|
2011-12-31 17:53:05 +01:00
|
|
|
you will need to add -nostdlib to your CFLAGS flags to assure that
|
|
|
|
you only take code from the NuttX libraries.
|
|
|
|
|
|
|
|
This, however, may causes other issues for libraries in the toolchain
|
|
|
|
that you do want (like libgcc.a or libm.a). These are special-cased
|
|
|
|
in most Makefiles, but you could still run into issues of missing
|
|
|
|
libraries.
|
|
|
|
|
|
|
|
6. Built-Ins. Some compilers target a particular operating system.
|
|
|
|
Many people would, for example, like to use the same toolchain to
|
|
|
|
develop Linux and NuttX software. Compilers built for other
|
|
|
|
operating systems may generate incompatible built-in logic and,
|
|
|
|
for this reason, -fno-builtin should also be included in your
|
|
|
|
C flags
|
|
|
|
|
|
|
|
And finally you may not be able to use NXFLAT.
|
|
|
|
|
|
|
|
7. NXFLAT. If you use a pre-built toolchain, you will lose all support
|
2012-09-18 16:06:57 +02:00
|
|
|
for NXFLAT. NXFLAT is a binary format described in
|
2011-12-31 17:53:05 +01:00
|
|
|
Documentation/NuttXNxFlat.html. It may be possible to build
|
|
|
|
standalone versions of the NXFLAT tools; there are a few examples
|
|
|
|
of this in the misc/buildroot/configs directory. However, it
|
|
|
|
is possible that there could be interoperability issues with
|
|
|
|
your toolchain since they will be using different versions of
|
2014-10-15 18:57:04 +02:00
|
|
|
binutils and possibly different ABIs.
|
2011-12-31 17:53:05 +01:00
|
|
|
|
2014-10-28 02:16:45 +01:00
|
|
|
Building Original Linux Boards in Cygwin
|
|
|
|
|
|
|
|
Some default board configurations are set to build under Linux and others
|
|
|
|
to build under Windows with Cygwin. Various default toolchains may also
|
|
|
|
be used in each configuration. It is possible to change the default
|
|
|
|
setup. Here, for example, is what you must do in order to compile a
|
|
|
|
default Linux configuration in the Cygwin environment using the
|
|
|
|
CodeSourceery for Windows toolchain. After instantiating a "canned"
|
|
|
|
NuttX configuration, run the target 'menuconfig' and set the following
|
|
|
|
items:
|
|
|
|
|
|
|
|
Build Setup->Build Host Platform->Windows
|
|
|
|
Build Setup->Windows Build Environment->Cygwin
|
|
|
|
System Type->Toolchain Selection->CodeSourcery GNU Toolchain under Windows
|
|
|
|
|
|
|
|
In Windows 7 it may be required to open the Cygwin shell as Administrator
|
|
|
|
("Run As" option, right button) you find errors like "Permission denied".
|
|
|
|
|
|
|
|
Recovering from Bad Configurations
|
|
|
|
|
|
|
|
Many people make the mistake of configuring NuttX with the "canned"
|
|
|
|
configuration and then just typing 'make' with disastrous consequences;
|
|
|
|
the build may fail with mysterious, uninterpretable, and irrecoverable
|
|
|
|
build errors. If, for example, you do this with an unmodified Linux
|
|
|
|
configuration in a Windows/Cgwin environment, you will corrupt the
|
|
|
|
build environment. The environment will be corrupted because of POSIX vs
|
|
|
|
Windows path issues and with issues related to symbolic links. If you
|
|
|
|
make the mistake of doing this, the easiest way to recover is to just
|
|
|
|
start over: Do 'make distclean' to remove every trace of the corrupted
|
|
|
|
configuration, reconfigure from scratch, and make certain that the set
|
|
|
|
the configuration correctly for your platform before attempting to make
|
|
|
|
again.
|
|
|
|
|
|
|
|
Just fixing the configuration file after you have instantiated the bad
|
|
|
|
configuration with 'make' is not enough.
|
|
|
|
|
2009-10-24 15:20:19 +02:00
|
|
|
DOCUMENTATION
|
|
|
|
^^^^^^^^^^^^^
|
|
|
|
|
2009-10-14 23:54:31 +02:00
|
|
|
Additional information can be found in the Documentation/ directory and
|
2009-10-24 15:20:19 +02:00
|
|
|
also in README files that are scattered throughout the source tree. The
|
|
|
|
documentation is in HTML and can be access by loading the following file
|
|
|
|
into your Web browser:
|
|
|
|
|
|
|
|
Documentation/index.html
|
|
|
|
|
|
|
|
NuttX documentation is also available online at http://www.nuttx.org.
|
|
|
|
|
|
|
|
Below is a guide to the available README files in the NuttX source tree:
|
2009-10-14 23:54:31 +02:00
|
|
|
|
2011-08-27 16:58:42 +02:00
|
|
|
nuttx
|
2009-10-14 23:54:31 +02:00
|
|
|
|
|
|
|
|
|- arch/
|
|
|
|
| |
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- arm/
|
2009-10-14 23:54:31 +02:00
|
|
|
| | `- src
|
|
|
|
| | `- lpc214x/README.txt
|
|
|
|
| |- sh/
|
|
|
|
| | |- include/
|
|
|
|
| | | `-README.txt
|
|
|
|
| | |- src/
|
|
|
|
| | | `-README.txt
|
2011-03-05 21:05:01 +01:00
|
|
|
| |- x86/
|
|
|
|
| | |- include/
|
|
|
|
| | | `-README.txt
|
|
|
|
| | `- src/
|
|
|
|
| | `-README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| `- z80/
|
|
|
|
| | `- src/
|
2012-12-10 19:40:01 +01:00
|
|
|
| | |- z80/README.txt
|
2012-12-11 19:04:04 +01:00
|
|
|
| | `- z180/README.txt, z180_mmu.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| `- README.txt
|
2013-10-27 14:45:54 +01:00
|
|
|
|- audio/
|
|
|
|
| `-README.txt
|
2014-05-08 19:08:01 +02:00
|
|
|
|- binfmt/
|
|
|
|
| `-libpcode/
|
|
|
|
| `-README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
|- configs/
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- amber/
|
|
|
|
| | `- README.txt
|
2013-06-27 22:33:10 +02:00
|
|
|
| |- arduino-due/
|
|
|
|
| | `- README.txt
|
2010-10-08 14:33:31 +02:00
|
|
|
| |- avr32dev1/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- c5471evm/
|
|
|
|
| | `- README.txt
|
2014-09-09 16:14:44 +02:00
|
|
|
| |- cc3200-launchpad/
|
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- cloudctrl
|
|
|
|
| | `- README.txt
|
2013-09-28 00:12:44 +02:00
|
|
|
| |- compal_e86
|
|
|
|
| | `- README.txt
|
2012-03-24 18:52:10 +01:00
|
|
|
| |- compal_e88
|
|
|
|
| | `- README.txt
|
|
|
|
| |- compal_e99
|
|
|
|
| | `- README.txt
|
2009-12-22 01:41:38 +01:00
|
|
|
| |- demo0s12ne64/
|
|
|
|
| | `- README.txt
|
2014-12-16 22:33:31 +01:00
|
|
|
| |- dk-tm4c129x/
|
|
|
|
| | `- README.txt
|
2009-12-31 21:23:07 +01:00
|
|
|
| |- ea3131/
|
|
|
|
| | `- README.txt
|
2011-12-24 14:46:06 +01:00
|
|
|
| |- ea3152/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- eagle100/
|
|
|
|
| | `- README.txt
|
2014-10-20 16:26:09 +02:00
|
|
|
| |- efm32-g8xx-stk/
|
|
|
|
| | `- README.txt
|
2014-10-22 22:32:25 +02:00
|
|
|
| |- efm32gg-stk3700/
|
|
|
|
| | `- README.txt
|
2012-06-30 02:53:54 +02:00
|
|
|
| |- ekk-lm3s9b96/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- ez80f910200kitg/
|
|
|
|
| | |- ostest/README.txt
|
|
|
|
| | `- README.txt
|
|
|
|
| |- ez80f910200zco/
|
|
|
|
| | |- dhcpd/README.txt
|
|
|
|
| | |- httpd/README.txt
|
|
|
|
| | |- nettest/README.txt
|
|
|
|
| | |- nsh/README.txt
|
|
|
|
| | |- ostest/README.txt
|
|
|
|
| | |- poll/README.txt
|
|
|
|
| | `- README.txt
|
2015-02-11 14:18:06 +01:00
|
|
|
| |- fire-stm32v2/
|
2012-09-09 21:13:30 +02:00
|
|
|
| | `- README.txt
|
2015-02-11 14:18:06 +01:00
|
|
|
| |- freedom-kl25z/
|
|
|
|
| | `- README.txt
|
|
|
|
| |- freedom-kl26z/
|
2013-05-05 17:10:47 +02:00
|
|
|
| | `- README.txt
|
2014-09-27 17:50:07 +02:00
|
|
|
| |- hymini-stm32v/
|
2011-12-24 14:46:06 +01:00
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- kwikstik-k40/
|
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- lincoln60/
|
|
|
|
| | `- README.txt
|
2012-03-10 19:57:44 +01:00
|
|
|
| |- lm3s6432-s2e/
|
|
|
|
| | `- README.txt
|
2011-01-12 05:45:23 +01:00
|
|
|
| |- lm3s6965-ek/
|
|
|
|
| | `- README.txt
|
|
|
|
| |- lm3s8962-ek/
|
2010-05-09 18:36:07 +02:00
|
|
|
| | `- README.txt
|
2012-07-04 16:19:49 +02:00
|
|
|
| |- lpc4330-xplorer/
|
|
|
|
| | `- README.txt
|
2014-11-26 22:37:54 +01:00
|
|
|
| |- lpc4357-evb/
|
|
|
|
| | `- README.txt
|
2015-05-23 03:56:45 +02:00
|
|
|
| |- lpcxpresso-lpc1115/
|
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- lpcxpresso-lpc1768/
|
|
|
|
| | `- README.txt
|
2013-09-13 20:45:33 +02:00
|
|
|
| |- maple/
|
|
|
|
| | `- README.txt
|
2010-10-08 14:33:31 +02:00
|
|
|
| |- mbed/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- mcu123-lpc214x/
|
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- micropendous3/
|
|
|
|
| | `- README.txt
|
2013-05-05 17:10:47 +02:00
|
|
|
| |- mikroe-stm32f/
|
|
|
|
| | `- README.txt
|
2012-06-20 02:04:56 +02:00
|
|
|
| |- mirtoo/
|
|
|
|
| | `- README.txt
|
2014-09-27 17:50:07 +02:00
|
|
|
| |- mt-db-x3/
|
|
|
|
| | `- README.txt
|
2015-01-31 21:10:53 +01:00
|
|
|
| |- moteino-mega/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- mx1ads/
|
|
|
|
| | `- README.txt
|
2011-02-27 16:42:07 +01:00
|
|
|
| |- ne63badge/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- ntosd-dm320/
|
|
|
|
| | |- doc/README.txt
|
|
|
|
| | `- README.txt
|
2014-10-15 15:05:08 +02:00
|
|
|
| |- nucleo-f4x1re/
|
2014-04-20 21:42:23 +02:00
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- nucleus2g/
|
2010-06-12 03:29:35 +02:00
|
|
|
| | `- README.txt
|
2013-02-23 00:05:34 +01:00
|
|
|
| |- nutiny-nuc120/
|
|
|
|
| | `- README.txt
|
2014-10-20 20:00:37 +02:00
|
|
|
| |- olimex-efm32g880f129-stk/
|
|
|
|
| | `- README.txt
|
2011-01-12 05:45:23 +01:00
|
|
|
| |- olimex-lpc1766stk/
|
2010-11-06 22:48:13 +01:00
|
|
|
| | `- README.txt
|
|
|
|
| |- olimex-lpc2378/
|
2009-10-14 23:54:31 +02:00
|
|
|
| | `- README.txt
|
2013-11-18 21:51:38 +01:00
|
|
|
| |- olimex-lpc-h3131/
|
|
|
|
| | `- README.txt
|
2014-06-03 18:34:36 +02:00
|
|
|
| |- olimex-stm32-h405/
|
|
|
|
| | `- README.txt
|
|
|
|
| |- olimex-stm32-p107/
|
|
|
|
| | `- README.txt
|
2013-10-24 16:48:04 +02:00
|
|
|
| |- olimex-stm32-p207/
|
|
|
|
| | `- README.txt
|
2010-11-06 22:48:13 +01:00
|
|
|
| |- olimex-strp711/
|
2010-04-11 21:44:36 +02:00
|
|
|
| | `- README.txt
|
2013-02-23 00:05:34 +01:00
|
|
|
| |- open1788/
|
|
|
|
| | `- README.txt
|
2012-12-11 22:42:15 +01:00
|
|
|
| |- p112/
|
|
|
|
| | `- README.txt
|
2011-05-08 23:38:47 +02:00
|
|
|
| |- pcblogic-pic32mx/
|
|
|
|
| | `- README.txt
|
2013-12-07 21:25:35 +01:00
|
|
|
| |- pcduino-a10/
|
|
|
|
| | `- README.txt
|
2015-02-22 01:41:17 +01:00
|
|
|
| |- pic32mx-starterkit/
|
2011-10-10 21:40:56 +02:00
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- pic32mx7mmb/
|
|
|
|
| | `- README.txt
|
2015-02-22 17:53:24 +01:00
|
|
|
| |- pic32mz-starterkit/
|
|
|
|
| | `- README.txt
|
2013-05-05 17:10:47 +02:00
|
|
|
| |- pirelli_dpl10/
|
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- qemu-i486/
|
2011-05-14 20:38:09 +02:00
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- rgmp/
|
2011-03-05 21:05:01 +01:00
|
|
|
| | `- README.txt
|
2013-07-19 23:23:03 +02:00
|
|
|
| |- sama5d3x-ek/
|
|
|
|
| | `- README.txt
|
2014-03-28 22:20:26 +01:00
|
|
|
| |- sama5d3-xplained/
|
|
|
|
| | `- README.txt
|
2014-06-06 20:37:36 +02:00
|
|
|
| |- sama5d4-ek/
|
|
|
|
| | `- README.txt
|
2014-02-13 00:50:58 +01:00
|
|
|
| |- samd20-xplained/
|
|
|
|
| | `- README.txt
|
2015-05-18 21:16:32 +02:00
|
|
|
| |- saml21-xplained/
|
|
|
|
| | `- README.txt
|
2010-01-22 04:45:25 +01:00
|
|
|
| |- sam3u-ek/
|
|
|
|
| | `- README.txt
|
2014-03-10 22:18:46 +01:00
|
|
|
| |- sam4e-ek/
|
|
|
|
| | `- README.txt
|
2013-06-03 23:11:56 +02:00
|
|
|
| |- sam4l-xplained/
|
|
|
|
| | `- README.txt
|
2013-06-11 02:20:30 +02:00
|
|
|
| |- sam4s-xplained/
|
|
|
|
| | `- README.txt
|
2014-04-22 01:34:05 +02:00
|
|
|
| |- sam4s-xplained-pro/
|
|
|
|
| | `- README.txt
|
2015-03-09 15:23:09 +01:00
|
|
|
| |- samv7i-xult/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- sim/
|
|
|
|
| | `- README.txt
|
2012-09-07 21:29:21 +02:00
|
|
|
| |- shenzhou/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- skp16c26/
|
|
|
|
| | `- README.txt
|
2013-10-02 16:24:46 +02:00
|
|
|
| |- spark/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- stm3210e-eval/
|
|
|
|
| | |- RIDE/README.txt
|
|
|
|
| | `- README.txt
|
2012-03-10 19:57:44 +01:00
|
|
|
| |- stm3220g-eval/
|
|
|
|
| | `- README.txt
|
2011-12-24 14:46:06 +01:00
|
|
|
| |- stm3240g-eval/
|
|
|
|
| | `- README.txt
|
2013-05-30 22:45:31 +02:00
|
|
|
| |- stm32_tiny/
|
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- stm32f3discovery/
|
|
|
|
| | `- README.txt
|
2012-01-11 15:56:56 +01:00
|
|
|
| |- stm32f4discovery/
|
|
|
|
| | `- README.txt
|
2014-01-13 00:59:38 +01:00
|
|
|
| |- stm32f429i-disco/
|
2014-12-19 21:14:41 +01:00
|
|
|
| | |- ltdc/README.txt
|
2014-01-13 00:59:38 +01:00
|
|
|
| | `- README.txt
|
2013-05-25 19:53:49 +02:00
|
|
|
| |- stm32ldiscovery/
|
2013-05-24 22:05:20 +02:00
|
|
|
| | `- README.txt
|
2014-01-13 00:59:38 +01:00
|
|
|
| |- stm32vldiscovery/
|
2013-11-07 23:55:45 +01:00
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- sure-pic32mx/
|
|
|
|
| | `- README.txt
|
2011-12-24 14:46:06 +01:00
|
|
|
| |- teensy/
|
|
|
|
| | `- README.txt
|
2015-05-07 15:06:50 +02:00
|
|
|
| |- teensy-lc/
|
|
|
|
| | `- README.txt
|
2014-03-10 18:25:06 +01:00
|
|
|
| |- tm4c123g-launchpad/
|
|
|
|
| | `- README.txt
|
2015-02-12 01:27:38 +01:00
|
|
|
| |- tm4c1294-launchpad/
|
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- twr-k60n512/
|
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- ubw32/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- us7032evb1/
|
|
|
|
| | `- README.txt
|
2013-11-30 19:14:15 +01:00
|
|
|
| |- viewtool-stm32f107/
|
|
|
|
| | `- README.txt
|
2011-02-27 16:42:07 +01:00
|
|
|
| |- vsn/
|
2011-03-06 16:39:02 +01:00
|
|
|
| | |- src/README.txt
|
2011-02-27 16:42:07 +01:00
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| |- xtrs/
|
|
|
|
| | `- README.txt
|
|
|
|
| |- z16f2800100zcog/
|
|
|
|
| | |- ostest/README.txt
|
|
|
|
| | |- pashello/README.txt
|
|
|
|
| | `- README.txt
|
|
|
|
| |- z80sim/
|
|
|
|
| | `- README.txt
|
|
|
|
| |- z8encore000zco/
|
|
|
|
| | |- ostest/README.txt
|
|
|
|
| | `- README.txt
|
|
|
|
| |- z8f64200100kit/
|
|
|
|
| | |- ostest/README.txt
|
|
|
|
| | `- README.txt
|
2013-02-26 15:09:43 +01:00
|
|
|
| |- zkit-arm-1769/
|
|
|
|
| | `- README.txt
|
|
|
|
| |- zp214xpa/
|
|
|
|
| | `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
| `- README.txt
|
2009-10-18 15:52:21 +02:00
|
|
|
|- drivers/
|
2014-11-27 16:14:00 +01:00
|
|
|
| |- eeprom/
|
|
|
|
| | `- README.txt
|
2011-12-24 14:46:06 +01:00
|
|
|
| |- lcd/
|
|
|
|
| | `- README.txt
|
2013-12-04 14:46:10 +01:00
|
|
|
| |- mtd/
|
|
|
|
| | `- README.txt
|
2014-12-16 21:58:25 +01:00
|
|
|
| |- sensors/
|
|
|
|
| | `- README.txt
|
2012-03-24 23:39:52 +01:00
|
|
|
| |- sercomm/
|
|
|
|
| | `- README.txt
|
2012-08-02 02:42:46 +02:00
|
|
|
| |- syslog/
|
|
|
|
| | `- README.txt
|
2009-10-18 15:52:21 +02:00
|
|
|
| `- README.txt
|
2011-04-30 19:41:08 +02:00
|
|
|
|- fs/
|
2013-11-13 23:40:03 +01:00
|
|
|
| |- binfs/
|
|
|
|
| | `- README.txt
|
2011-05-08 16:42:42 +02:00
|
|
|
| |- mmap/
|
|
|
|
| | `- README.txt
|
2013-11-13 22:59:14 +01:00
|
|
|
| |- nxffs/
|
|
|
|
| | `- README.txt
|
2013-11-23 13:44:17 +01:00
|
|
|
| |- smartfs/
|
|
|
|
| | `- README.txt
|
2013-11-13 22:59:14 +01:00
|
|
|
| `- procfs/
|
2011-04-30 19:41:08 +02:00
|
|
|
| `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
|- graphics/
|
|
|
|
| `- README.txt
|
2012-11-11 01:57:22 +01:00
|
|
|
|- lib/
|
|
|
|
| `- README.txt
|
2012-11-10 16:47:45 +01:00
|
|
|
|- libc/
|
2011-04-02 17:25:22 +02:00
|
|
|
| `- README.txt
|
2013-12-28 15:40:03 +01:00
|
|
|
|- libnx/
|
|
|
|
| `- README.txt
|
2009-10-14 23:54:31 +02:00
|
|
|
|- libxx/
|
|
|
|
| `- README.txt
|
2012-09-13 02:34:43 +02:00
|
|
|
|- mm/
|
2014-09-23 15:11:47 +02:00
|
|
|
| |- shm/
|
|
|
|
| | `- README.txt
|
2012-09-13 02:34:43 +02:00
|
|
|
| `- README.txt
|
2014-06-27 23:18:18 +02:00
|
|
|
|- net/
|
|
|
|
| `- README.txt
|
2011-04-02 17:25:22 +02:00
|
|
|
|- syscall/
|
|
|
|
| `- README.txt
|
2010-04-14 03:17:42 +02:00
|
|
|
`- tools/
|
|
|
|
`- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
|
|
|
|
apps
|
|
|
|
|- examples/
|
2014-11-07 22:03:03 +01:00
|
|
|
| |- bastest/README.txt
|
2012-10-27 20:21:26 +02:00
|
|
|
| |- json/README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- pashello/README.txt
|
|
|
|
| `- README.txt
|
2011-09-22 16:53:15 +02:00
|
|
|
|- graphics/
|
|
|
|
| `- tiff/README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
|- interpreters/
|
2014-10-27 16:29:04 +01:00
|
|
|
| |- bas
|
2014-11-04 19:07:18 +01:00
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- ficl
|
|
|
|
| | `- README.txt
|
|
|
|
| `- README.txt
|
2012-07-21 16:56:21 +02:00
|
|
|
|- modbus/
|
|
|
|
| `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
|- netutils/
|
2012-09-12 20:42:07 +02:00
|
|
|
| |- discover
|
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- ftpc
|
|
|
|
| | `- README.txt
|
2012-10-27 20:21:26 +02:00
|
|
|
| |- json
|
|
|
|
| | `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
| |- telnetd
|
|
|
|
| | `- README.txt
|
|
|
|
| `- README.txt
|
|
|
|
|- nshlib/
|
|
|
|
| `- README.txt
|
2012-09-26 01:36:27 +02:00
|
|
|
|- NxWidgets/
|
|
|
|
| `- README.txt
|
2011-08-27 16:58:42 +02:00
|
|
|
|- system/
|
2013-09-26 01:23:03 +02:00
|
|
|
| |- cdcacm
|
|
|
|
| | `- README.txt
|
2013-01-28 19:45:09 +01:00
|
|
|
| |- i2c
|
2012-10-04 02:11:05 +02:00
|
|
|
| | `- README.txt
|
2014-01-16 16:25:15 +01:00
|
|
|
| |- inifile
|
|
|
|
| | `- README.txt
|
2013-07-15 20:33:35 +02:00
|
|
|
| |- install
|
|
|
|
| | `- README.txt
|
2013-10-27 14:45:54 +01:00
|
|
|
| |- nxplayer
|
|
|
|
| | `- README.txt
|
2013-09-26 00:54:39 +02:00
|
|
|
| |- usbmsc
|
|
|
|
| | `- README.txt
|
2015-04-15 17:31:44 +02:00
|
|
|
| |- zmodem
|
|
|
|
| | `- README.txt
|
|
|
|
| `- zoneinfo
|
2011-08-27 16:58:42 +02:00
|
|
|
| `- README.txt
|
|
|
|
`- README.txt
|
2012-11-09 15:54:29 +01:00
|
|
|
|
|
|
|
NxWidgets
|
|
|
|
|- Doxygen
|
|
|
|
| `- README.txt
|
|
|
|
|- tools
|
|
|
|
| `- README.txt
|
|
|
|
|- UnitTests
|
|
|
|
| `- README.txt
|
|
|
|
`- README.txt
|