新建文件 Software/OperatingSystem/RTOS/Nuttx/nuttx_基本配置和编译.md
This commit is contained in:
parent
4966dc17f3
commit
4a193a222d
|
@ -0,0 +1,28 @@
|
|||
# nuttx 基本配置和编译
|
||||
|
||||
至少要克隆 nuttx,apps 和 tools 三个仓库,tools 只需要编译和安装一次,在编译和配置 nuttx 时需要用到 tools 下的程序。nuttx 目录下也有 tools 文件夹,需要注意区分。
|
||||
|
||||
git clone https://bitbucket.org/nuttx/nuttx.git nuttx
|
||||
git clone https://bitbucket.org/nuttx/apps.git apps
|
||||
git clone https://bitbucket.org/nuttx/tools.git tools
|
||||
|
||||
cd tools/kconfig-frontends/
|
||||
./configure --enable-mconf
|
||||
make
|
||||
make install
|
||||
cd -
|
||||
|
||||
如果中途提示找不到 aclocal 则需要安装 automake 1.5,可到 <ftp://mirrors.ustc.edu.cn/gnu/automake> 下载该源码,之后通过源码编译安装。编译 automake 仍然需要 aclocal 和 automake,这些都在源码包下,拷贝到 automake 源码的 bin 目录下即可。
|
||||
|
||||
cd ../apps/
|
||||
git checkout nuttx-7.26
|
||||
cd ../nuttx
|
||||
git checkout nuttx-7.26
|
||||
cd tools
|
||||
./configure.sh configs/stm32f746g-disco/nsh
|
||||
cd ..
|
||||
make menuconfig
|
||||
|
||||
选择编译环境为 linux 等,之后 save、exit。
|
||||
|
||||
make -j4
|
Loading…
Reference in New Issue