> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.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` 目录中看到镜像，其中 `build` 是您运行 `kas shell` 命令的目录中由 `kas` 创建的默认构建目录。如果您的 `kas` 配置设置了自定义工作目录，请使用该目录而不是 `build`。

## 清理构建产物

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

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