# 將第三方層新增至工作區

若要將第三方層新增至工作區，請執行以下操作：

1. 在 `<WORKSPACE>/layers/` 下複製該層。
2. 在 `layers/meta-qcom-distro/conf/bblayers.conf` 檔案中的 `BBLAYERS` 變數中加入該層，如下所示：

# These layers hold machine specific content, aka Board Support Packages
        BSPLAYERS ?= " \
          ${WORKSPACE}/layers/meta-testlayer \
          ${WORKSPACE}/layers/meta-qcom-hwe \
          ${WORKSPACE}/layers/meta-qcom \
        "
        Copy to clipboard

複製並加入該層可讓 BitBake 解析該層。

Last Published: Dec 23, 2025

[Previous Topic
使用 devtool](https://docs.qualcomm.com/bundle/publicresource/80-70020-27TC/topics/use_of_devtool.md) [Next Topic
建立具有最佳化開機 KPI 的建置](https://docs.qualcomm.com/bundle/publicresource/80-70020-27TC/topics/creating_a_build_for_optimized_boot_kpi.md)