setup the Build Environment - XradioTech/XR871-OLD GitHub Wiki
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 / 下载安装工具链
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 / 下载安装工具链
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