# Build with Github (basic layers)

Source: [https://docs.qualcomm.com/doc/80-65220-2/topic/build-with-github-binaries.html](https://docs.qualcomm.com/doc/80-65220-2/topic/build-with-github-binaries.html)

Use the detailed instructions to sync and build the QIRP SDK basic layers and use the
        binaries needed for running all the samples applications.

**Prerequisites:**

- Ensure that you have set up the host according to [Host setup](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/github_workflow_unregistered_users.html#build_with_standalone_commands_unreg).

Note:
- For QIRP SDK, you can **Build with standalone commands** as described in the
                    following steps.
- **Build with Dockerfile** is not supported for current release.

## Download basic layers

Download the all the basic layers for the QIRP SDK.

### Option 1: Download with manifest

- Download the layers for the QIRP SDK by running the following commands.

Note: To get the latest `<robotics-release-manifest>`, see the [Qualcomm® Linux Intelligent Robotics Product SDK (QIRP SDK) 2.0
                    Release Notes](https://docs.qualcomm.com/bundle/publicresource/topics/80-75695-1).

        cd <workspace>
        repo init -u https://github.com/quic-yocto/qcom-manifest -b qcom-linux-kirkstone -m <robotics-release-manifest>
        repo sync -c -j8Copy to clipboard

    **Example:**

    To download the ``qcom-6.6.28-QLI.1.1-Ver.1.1_robotics-product-sdk-1.1``
            release, run this command:

        repo init -u https://github.com/quic-yocto/qcom-manifest -b qcom-linux-kirkstone -m qcom-6.6.28-QLI.1.1-Ver.1.1_robotics-product-sdk-1.1.xml
        repo sync -c -j8Copy to clipboard

    **Results:** The following layers are downloaded.

        meta-qcom
        meta-qcom-hwe
        meta-qcom-distro
        meta-ros
        meta-qcom-robotics
        meta-qcom-robotics-distro
        meta-qcom-robotics-sdk
        meta-qcom-qim-product-sdkCopy to clipboard

### Option 2: Download with the "git clone" command

1. Set up the host environment and sync the latest Yocto project BSP as described in the
            [Qualcomm Repo Manifest README file](https://github.com/quic-yocto/qcom-manifest/blob/qcom-linux-kirkstone/README.md).
2. Download the layers for the QIRP SDK based on the `<workspace>`
          directory of the downloaded Yocto project
            BSP.

        cd <workspace>
        git clone https://git.codelinaro.org/clo/le/meta-ros.git -b ros.qclinux.1.0.r1-rel layers/meta-ros
        git clone https://github.com/quic-yocto/meta-qcom-robotics.git layers/meta-qcom-robotics
        git clone https://github.com/quic-yocto/meta-qcom-robotics-distro.git layers/meta-qcom-robotics-distro
        git clone https://github.com/quic-yocto/meta-qcom-robotics-sdk.git layers/meta-qcom-robotics-sdk
        git clone https://github.com/quic-yocto/meta-qcom-qim-product-sdk layers/meta-qcom-qim-product-sdkCopy to clipboard

**Results:**
          
    The same layers are downloaded as Option 1: Download with manifest.

## Compile the QIRP SDK

Source: [https://docs.qualcomm.com/doc/80-65220-2/topic/build-with-github-binaries.html](https://docs.qualcomm.com/doc/80-65220-2/topic/build-with-github-binaries.html)

Describes how to compile the QIRP SDK.

### Procedure

1. Set up the build environment.
        
- If you use the **Option 1: Download with manifest** in Download basic layers, execute these
              commands:

            cd <workspace>
            MACHINE=qcm6490 DISTRO=qcom-robotics-ros2-humble source setup-robotics-environmentCopy to clipboard
    - If you use the **Option 2: Download with the "git clone" command** in Download basic layers, execute these
              commands:

            cd <workspace>
            ln -s layers/meta-qcom-robotics-distro/set_bb_env.sh ./setup-robotics-environment
            ln -s layers/meta-qcom-robotics-sdk/scripts/qirp-build ./qirp-build
            MACHINE=qcm6490 DISTRO=qcom-robotics-ros2-humble source setup-robotics-environmentCopy to clipboard
2. Build the robotics image and QIRP SDK artifacts.
        
../qirp-build qcom-robotics-full-imageCopy to clipboard

**Compilation results:**

    - QIRP SDK artifacts:
                `<workspace>/build-qcom-robotics-ros2-humble/tmp-glibc/deploy/qirpsdk_artifacts/qirp-sdk_<version>.tar.gz`
    - Robotics image:
                `<workspace>/build-qcom-robotics-ros2-humble/tmp-glibc/deploy/images/qcm6490/qcom-robotics-full-image`

Last Published: Jul 08, 2024

Previous Topic
 
Build with QSC-CLI Next Topic

Build with Github (firmware and extras)