# zephyrproject **Repository Path**: iotsch/zephyrproject ## Basic Information - **Project Name**: zephyrproject - **Description**: zephyr工程代码,已删除子模块,全部代码合并到一起 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-25 - **Last Updated**: 2021-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # zephyrproject #### 介绍 zephyr工程代码,已把全部代码合并到一起 编译系统 ubuntu20.04 参考:https://docs.zephyrproject.org/latest/getting_started/index.html 安装必备软件 ``` sudo apt install --no-install-recommends git cmake ninja-build gperf \ ccache dfu-util device-tree-compiler wget \ python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \ make gcc gcc-multilib g++-multilib libsdl2-dev ``` 安装west管理工具 ``` pip3 install --user -U west echo 'export PATH=~/.local/bin:"$PATH"' >> ~/.bashrc source ~/.bashrc ``` 下载源码 ``` cd ~ https://gitee.com/iotsch/zephyrproject.git zephyrproject ``` 环境配置 ``` west zephyr-export ``` 检查环境配置 ``` pip3 install --user -r ~/zephyrproject/zephyr/scripts/requirements.txt ``` 查看最新版工具 https://github.com/zephyrproject-rtos/sdk-ng/releases 下载最新版工具,版本号请替换 ``` cd ~ wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.13.0-rc3/zephyr-sdk-0.13.0-rc3-x86_64-linux-setup.run chmod +x zephyr-sdk-0.13.0-rc3-x86_64-linux-setup.run ./zephyr-sdk-0.13.0-rc3-x86_64-linux-setup.run -- -d ~/zephyr-sdk-0.13.0 ``` 编译 ``` cd ~/zephyrproject/zephyr board=qemu_x86 west build -p auto -b $board -d build samples/hello_world ```