> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 常见 Yocto 任务

本文档介绍如何使用 `kas` 工具执行常见的 Yocto 任务。

## 修改配方

使用 `devtool` 修改配方

```bash theme={null}
kas shell -c "devtool modify <recipe>" <config.yml>
```

进行更改后，重新构建该配方

```bash theme={null}
kas shell -c "bitbake <recipe>" <config.yml>
```

## 生成 SDK

从当前构建配置生成 SDK

```bash theme={null}
kas shell -c "bitbake -c do_populate_sdk <image>" <config.yml>
```

SDK 生成完成后，您可以在 `build/tmp/deploy/sdk` 目录中看到相关镜像。

## 清理构建产物

* 清理特定配方的构建产物
  ```bash theme={null}
  kas shell -c "bitbake -fc do_cleansstate <recipe>" <config.yml>
  ```

* 清理后重新构建该配方
  ```bash theme={null}
  kas shell -c "bitbake <recipe>" <config.yml>
  ```
