# qualcomm-linux/meta-qcom-hwe architecture

> Architecture diagram of the GitHub repository qualcomm-linux/meta-qcom-hwe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/qualcomm-linux/meta-qcom-hwe
- Repository: https://github.com/qualcomm-linux/meta-qcom-hwe

## Overview

##### Main Components

a. Layer Structure Components:
- Configuration (conf/)
- Machine Configurations
- Recipes Components:
- BSP (recipes-bsp/)
- Kernel (recipes-kernel/)
- Development Tools (recipes-devtools/)
- CI/CD Pipeline (.github/workflows/)

b. External Dependencies:
- OpenEmbedded Core (meta)
- meta-qcom Layer

**[Top Level]**
- Meta Layer Dependencies
- OpenEmbedded Core (meta)
- meta-qcom

- Configuration Layer
- Machine Configurations
- QCS6490
- QCS9100
- Base Configurations
- Layer Configuration

- Recipe Categories
- BSP Components
- Firmware
- Partition Management
- Kernel Components
- Linux Yocto Dev
- Board-specific DTSs
- Development Tools
- Partition Utilities

- Build & CI System
- KAS Build System
- GitHub Actions Workflows

##### Key Relationships to Highlight

- How machine configurations inherit from base configurations
- Relationship between BSP components and specific hardware platforms
- Demonstrate the build flow from recipes through the KAS build system
- How CI/CD pipelines interact with the build system

##### Important Details

- Supported platforms (QCS6490, QCS9100, etc.)
- Build system requirements
- Flash/deployment process flow
- Version compatibility (Yocto Project alignment)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Style Definitions
    classDef external fill:#gray,stroke:#333,stroke-width:2px
    classDef core fill:#blue,stroke:#333,stroke-width:2px
    classDef bsp fill:#green,stroke:#333,stroke-width:2px
    classDef build fill:#orange,stroke:#333,stroke-width:2px

    %% External Dependencies
    subgraph Dependencies
        OE[OpenEmbedded Core]:::external
        MQ[meta-qcom]:::external
    end

    %% Configuration Layer
    subgraph ConfigLayer["Configuration Layer"]
        LC["Layer Configuration"]:::core
        click LC "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/conf/layer.conf"
        
        subgraph MachineConfigs["Machine Configurations"]
            BC["Base Configuration"]:::core
            click BC "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/conf/machine/include/qcom-base.inc"
            QCS6490["QCS6490 Config"]:::bsp
            click QCS6490 "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/conf/machine/include/qcom-qcs6490.inc"
            QCS9100["QCS9100 Config"]:::bsp
            click QCS9100 "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/conf/machine/include/qcom-qcs9100.inc"
        end
    end

    %% Recipe Categories
    subgraph RecipeCategories["Recipe Categories"]
        subgraph BSP["BSP Components"]
            FW["Firmware"]:::bsp
            click FW "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-bsp/firmware"
            PM["Partition Management"]:::bsp
            click PM "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-bsp/partition"
        end

        subgraph Kernel["Kernel Components"]
            LYD["Linux Yocto Dev"]:::core
            click LYD "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-kernel/linux/linux-yocto-dev"
            KC["Kernel Configs"]:::core
            click KC "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-kernel/linux/linux-yocto-dev/configs"
            DTS["Board-specific DTS"]:::bsp
            click DTS "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-kernel/linux/linux-yocto-dev/qcm6490-board-dts"
        end

        subgraph DevTools["Development Tools"]
            PU["Partition Utilities"]:::core
            click PU "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-devtools/partition-utils"
            PGT["Partition Generation Tool"]:::core
            click PGT "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/recipes-devtools/partition-utils/qcom-gen-partitions-tool"
        end
    end

    %% Build and CI System
    subgraph BuildCI["Build & CI System"]
        GHA["GitHub Actions"]:::build
        click GHA "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/.github/workflows"
        LAVA["LAVA Tests"]:::build
        click LAVA "https://github.com/qualcomm-linux/meta-qcom-hwe/tree/main/ci/lava"
        BBC["Base Build Config"]:::build
        click BBC "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/ci/base.yml"
        
        subgraph PlatformBuilds["Platform Builds"]
            QCM["QCM6490 Build"]:::build
            click QCM "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/ci/qcm6490.yml"
            RB3["RB3Gen2 Build"]:::build
            click RB3 "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/ci/qcs6490-rb3gen2-core-kit.yml"
        end
    end

    %% Image Types
    IT["Qualcomm Image Types"]:::core
    click IT "https://github.com/qualcomm-linux/meta-qcom-hwe/blob/main/classes-recipe/image_types_qcom.bbclass"

    %% Relationships
    OE --> LC
    MQ --> LC
    BC --> QCS6490
    BC --> QCS9100
    FW --> IT
    PM --> IT
    LYD --> IT
    PU --> PM
    PGT --> PM
    GHA --> BBC
    BBC --> QCM
    BBC --> RB3
    LAVA --> QCM
    LAVA --> RB3

    %% Legend
    subgraph Legend
        L1["External Dependencies"]:::external
        L2["Core Components"]:::core
        L3["BSP Components"]:::bsp
        L4["Build System"]:::build
    end
```
