# 使用 devtool 修改 Qualcomm 设备加载程序

以下示例展示了 Qualcomm 软件组件的 `devtool` 使用方法。

- 内核：请参阅[使用 Yocto 开发内核](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-3/kernel-development.html#yocto-kernel-support)。
- QDL 工具：使用 `devtool` 修改创建的工作区中的 QDL 源代码。

devtool modify qdl
        INFO: Source tree extracted to <workspace>/build-qcom-wayland/workspace/sources/qdl
        INFO: Using source tree as build directory since that would be the default for this recipe
        INFO: Recipe qdl now set up to build from <workspace>/build-qcom-wayland/workspace/sources/qdl
        Copy to clipboard

    1. 在本地签出以下代码树：

tree -L 2 build-qcom-wayland/workspace/
            build-qcom-wayland/workspace/
            ├── appends
            │   └── qdl_git.bbappend
            ├── conf
            │   └── layer.conf
            ├── README
            └── sources
                └── qdl
            Copy to clipboard
    2. 检查已检出的 QDL 源代码树：

ls workspace/sources/qdl/
            firehose.c  LICENSE  Makefile  patch.c  patch.h  program.c  program.h  qdl.c  qdl.h  README  sahara.c  ufs.c  ufs.h  util.c
            Copy to clipboard
    3. 在 `workspace/sources/qdl/` 下更改源代码树并编译您的更改：

devtool build qdl
            devtool build-image qcom-multimedia-image
            Copy to clipboard

    生成的镜像位于路径 `build-qcom-wayland/tmp-glibc/deploy/images/qcs6490-rb3gen2-core-kit/qcom-multimedia-image` 中。
- Weston：使用 devtool 在创建的工作区中修改 Weston。

devtool modify weston
        INFO: Adding local source files to srctree...
        INFO: Source tree extracted to <workspace>/build-qcom-wayland/workspace/sources/pulseaudio
        INFO: Recipe weston now set up to build from <workspace>/build-qcom-wayland/workspace/sources/weston
        Copy to clipboard

    1. 在本地签出以下代码树：

tree -L 2 build-qcom-wayland/workspace/
            build-qcom-wayland/workspace/
            ├── appends
            │   └── weston_10.0.2.bbappend
            ├── conf
            │   └── layer.conf
            ├── README
            └── sources
                └── weston
            Copy to clipboard
    2. 检查已检出的 Weston 源代码树：

ls workspace/sources/weston/
            clients           COPYING      desktop-shell     include      libweston          meson.build        oe-local-files  pipewire    releasing.rst  tests  weston.ini.in
            compositor        data         doc               ivi-shell    libweston-desktop  meson_options.txt  oe-logs         protocol    remoting       tools  xwayland
            CONTRIBUTING.rst  DCO-1.1.txt  fullscreen-shell  kiosk-shell  man                notes.txt          oe-workdir      README.rst  shared         wcap
            Copy to clipboard
    3. 在 `workspace/sources/weston/` 下更改源代码树并编译您的更改：

devtool build weston
            devtool build-image qcom-multimedia-image
            Copy to clipboard

    生成的镜像位于路径 `build-qcom-wayland/tmp-glibc/deploy/images/qcs6490-rb3gen2-core-kit/qcom-multimedia-image` 中。

Last Published: Nov 04, 2025

[Previous Topic
修改分区布局](https://docs.qualcomm.com/bundle/publicresource/80-70022-27SC/topics/modifying_partition_layout.md) [Next Topic
将第三方层添加到工作区](https://docs.qualcomm.com/bundle/publicresource/80-70022-27SC/topics/adding_third_party_layers_to_workspace.md)