# TelAF DiagGen tool V1

Source: [https://docs.qualcomm.com/doc/80-41102-1/topic/telaf_diaggen_tool_v1.html](https://docs.qualcomm.com/doc/80-41102-1/topic/telaf_diaggen_tool_v1.html)

The OEM defined yaml files should be put under
                ~/telaf/apps/tools/tafDiagGen/V1/samples/customer. If the basic
            syntax defined in V1/samples/schemas is not enough, the user needs
            to extend them to V1/samples/extended with
                exchecker.py.

After putting everything needed in the configuration files, run the tool to generate the
            source files for TelAF diag services.

Currently, the compilation can either be done together with the TelAF image compilation
            or separately.

## Combine the compilation into the TelAF compilation

**For a Yocto build**

Add the following lines in the set\_environment\_variables()
                function in the
                    poky/meta-qti-telaf/recipes/telaf-build/telaf-build.bb file
                and in the do\_compile() function in the
                    poky/meta-qti-telaf/recipes/telaf-build/telaf-test-build.bb
                file.

- `export DGTOOL='dgtool-V1'`
- `export DIAG_FEATURE_A = y`

**For a standalone TelAF build**

Export the following variables in a shell or environment.

- `export DGTOOL='dgtool-V1'`
- `export DIAG_FEATURE_A = y`

Note: Ensure your HOST environment has Python version ≥ 3.8.0 for
                the V1 tool. If `ls -l /usr/bin/python3` is linked to
                    `python3.6`, add `export
                    DGTOOL_PY=/usr/bin/python3.8` in both of the above files

## Generate the configuration files separately

1. Set the compilation environment by going to
                        ~/telaf/apps/tools/tafDiagGen and
                    running:

        export TELAF_ROOT=~/telaf
        export DGTOOL_TARGET=sa525mCopy to clipboard
2. Run the following command in the root directory to install all
                    dependencies.

        make -f dgtool.mk dgtool-V1-setupCopy to clipboard
3. Build with the
                        configurations.

        make -f dgtool.mk dgtool-V1-buildCopy to clipboard

    All
                        generated files are at
                            ~/telaf/apps/tools/tafDiagGen/V1/build.
4. (Optional) Clean the
                    build.

        make -f dgtool.mk dgtool-V1-cleanCopy to clipboard
5. Install the parsed configurations to the TelAF diag
                    service.

        make -f dgtool.mk dgtool-V1-installCopy to clipboard

After running the installation command, the TelAF diag service is set up with the new
                configurations. Rebuild the service and deploy it to make it take effect.

**Parent Topic:** [Configurations](https://docs.qualcomm.com/doc/80-41102-1/topic/configurations-diag.html)

Last Published: May 12, 2026

[Previous Topic
Configurations](https://docs.qualcomm.com/bundle/publicresource/80-41102-1/topics/configurations-diag.md) [Next Topic
TelAF DiagGen tool V2](https://docs.qualcomm.com/bundle/publicresource/80-41102-1/topics/telaf_diaggen_tool_v2.md)