xr871-开始编译环境

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等)
    cygwin-select-tools

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 / 下载安装工具链

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
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值