setup the Build Environment
Aaron-Ye edited this page on Feb 28 · 5 revisions
Content
On Windows
1. Install Cygwin / 安装Cygwin工具
- Download Cygwin terminal tools from https://cygwin.com/install.html
从Cygwin官方网站下载Cygwin终端setup-x86.exe - Run setup-x86.exe or setup-x86_64.exe(for Windows 64-bit OS) to install the Cygwin packages
运行setup-x86.exe安装Cygwin工具包(注意:安装路径不要包含中文路径或者空格) - Select packages we want to install(make, git, wget, binutils, vim,etc.)
选择想要安装的工具包(make, git, wget, binutils, vim等)
2. Download the toolchain / 下载安装工具链
- Download the ARM GCC Toolchain for Windows.
下载ARM GCC工具链Windows安装文件. - 解压gcc-arm-none-eabi-4_9-2015q2-20150609-win32.zip
- C:\cygwin64\home\Administrator 目录下新建tools文件夹,如下图所示
- ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190803171230935.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pob3VqdW5ib18yMDEx,size_16,color_FFFFFF,t_70)
- 在tools目录下新建gcc-arm-none-eabi-4_9-2015q2文件夹,如下图所示
- ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190803171415486.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pob3VqdW5ib18yMDEx,size_16,color_FFFFFF,t_70)
- 将gcc-arm-none-eabi-4_9-2015q2-20150609-win32.zip解压出来的文件复制到gcc-arm-none-eabi-4_9-2015q2文件夹中,如下图所示
- ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190803171611887.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3pob3VqdW5ib18yMDEx,size_16,color_FFFFFF,t_70)
3. Setup the Build Environment / 设置编译环境
- Download the XR871SDK Repository from github (git clone https://github.com/XradioTech/XR871.git)
从github上下载XR871SDK仓库 - modify the 03_SDK/xr871sdk/gcc.mk and set the variable CC_DIR to config the toolchain path
修改gcc.mk中的CC_DIR变量设置工具链的安装路径
CC_DIR := ~/tools/gcc-arm-none-eabi-4_9-2015q2/bin
On Linux
1. Select a Linux Platfrom / 选择Linux开发平台
- Ubuntu is recommended
推荐使用Ubuntu平台
2. Download the toolchain / 下载安装工具链
- Download the ARM GCC Toolchain for Linux.
下载ARM GCC工具链Linux压缩包. - decompress the package
解压缩该工具包
3. Setup the Build Environment / 设置编译环境
- Download the XR871SDK Repository from github (git clone https://github.com/XradioTech/XR871.git)
从github上下载XR871SDK仓库 - modify the 03_SDK/xr871sdk/gcc.mk and set the variable CC_DIR to config the toolchain path
修改gcc.mk中的CC_DIR变量设置工具链的安装路径
CC_DIR := ~/tools/gcc-arm-none-eabi-4_9-2015q2/bin