# nvidia/edk2 architecture

> Architecture diagram of the GitHub repository nvidia/edk2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nvidia/edk2
- Repository: https://github.com/nvidia/edk2

## Overview

EDK II is a cross-platform UEFI/PI firmware development environment. The principal workflow is platform developers using the project’s tooling to produce firmware for platforms such as ArmVirtPkg; firmware then runs as platform-specific drivers and services. The supplied excerpts show build-rule handling and shared Python tooling, but not a complete build-to-image pipeline or most firmware call paths. Runtime nodes therefore map major package capabilities visible in the tree, while unsupported connections are omitted.

Main entry points: [`BaseTools/Source/Python/AutoGen/BuildEngine.py`](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/BaseTools/Source/Python/AutoGen/BuildEngine.py) (Build rules), [`ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c`](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c) (Platform configuration), [`ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.c`](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.c) (Virtual platform), [`BaseTools/Source/Python/Common`](https://github.com/nvidia/edk2/tree/main-edk2-stable202508/BaseTools/Source/Python/Common) (Shared build utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tools["Build tooling"]
  node_build_engine["Build rules<br/>[BuildEngine.py]"]
  node_common["Shared build utilities"]
end

subgraph group_arm["Arm firmware"]
  node_sec["SEC startup<br/>[Sec.c]"]
  node_prepi["Pre-PI startup<br/>[PeilessSec.c]"]
  node_memory["Memory initialization<br/>[MemoryInitPeim.c]"]
  node_cpu["CPU services<br/>[CpuDxe.c]"]
  node_interrupts["Interrupt control<br/>[ArmGicDxe.c]"]
  node_timer["Timer services<br/>[TimerDxe.c]"]
  node_scmi["SCMI protocols<br/>[ScmiDxe.c]"]
  node_smmu["I/O MMU<br/>[SmmuDxe.c]"]
  node_mmcomm["MM communication<br/>[MmCommunication.c]"]
end

subgraph group_platform["Virtual platforms"]
  node_virt_platform["Virtual platform"]
  node_config_manager["Platform configuration"]
  node_dynamic_tables["Dynamic tables"]
end

subgraph group_services["Platform services"]
  node_smbios["Processor inventory"]
  node_boot_manager["Boot management<br/>[PlatformBm.c]"]
  node_display["Graphics output"]
  node_storage["Semihost filesystem<br/>[SemihostFs.c]"]
end

node_developer(("Platform developer"))
node_firmware["Firmware image"]

node_developer -.->|"uses"| node_build_engine
node_build_engine -->|"imports"| node_common
node_build_engine -.->|"builds"| node_firmware
node_firmware -.->|"boots"| node_sec
node_virt_platform -.->|"configures"| node_config_manager
node_config_manager -.->|"supplies configuration"| node_dynamic_tables

click node_build_engine "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/BaseTools/Source/Python/AutoGen/BuildEngine.py"
click node_common "https://github.com/nvidia/edk2/tree/main-edk2-stable202508/BaseTools/Source/Python/Common"
click node_sec "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/Sec/Sec.c"
click node_prepi "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/PeilessSec/PeilessSec.c"
click node_memory "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.c"
click node_cpu "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/CpuDxe/CpuDxe.c"
click node_interrupts "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/ArmGicDxe/ArmGicDxe.c"
click node_timer "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/TimerDxe/TimerDxe.c"
click node_scmi "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.c"
click node_smmu "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/SmmuDxe/SmmuDxe.c"
click node_mmcomm "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c"
click node_smbios "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c"
click node_virt_platform "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.c"
click node_config_manager "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c"
click node_dynamic_tables "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c"
click node_boot_manager "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c"
click node_display "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.c"
click node_storage "https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_build_engine,node_common toneBlue
class node_sec,node_prepi,node_memory,node_cpu,node_interrupts,node_timer,node_scmi,node_smmu,node_mmcomm toneAmber
class node_virt_platform,node_config_manager,node_dynamic_tables toneMint
class node_smbios,node_boot_manager,node_display,node_storage toneRose
class node_developer,node_firmware toneIndigo
```

## Components

### Build tooling

- [Build rules](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/BaseTools/Source/Python/AutoGen/BuildEngine.py): `BaseTools/Source/Python/AutoGen/BuildEngine.py`
- [Shared build utilities](https://github.com/nvidia/edk2/tree/main-edk2-stable202508/BaseTools/Source/Python/Common): `BaseTools/Source/Python/Common`

### Arm firmware

- [SEC startup](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/Sec/Sec.c): `ArmPlatformPkg/Sec/Sec.c`
- [Pre-PI startup](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/PeilessSec/PeilessSec.c): `ArmPlatformPkg/PeilessSec/PeilessSec.c`
- [Memory initialization](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.c): `ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.c`
- [CPU services](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/CpuDxe/CpuDxe.c): `ArmPkg/Drivers/CpuDxe/CpuDxe.c`
- [Interrupt control](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/ArmGicDxe/ArmGicDxe.c): `ArmPkg/Drivers/ArmGicDxe/ArmGicDxe.c`
- [Timer services](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/TimerDxe/TimerDxe.c): `ArmPkg/Drivers/TimerDxe/TimerDxe.c`
- [SCMI protocols](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.c): `ArmPkg/Drivers/ArmScmiDxe/ScmiDxe.c`
- [I/O MMU](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/SmmuDxe/SmmuDxe.c): `ArmPkg/Drivers/SmmuDxe/SmmuDxe.c`
- [MM communication](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c): `ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c`

### Virtual platforms

- [Virtual platform](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.c): `ArmVirtPkg/Library/ArmPlatformLibQemu/ArmPlatformLibQemu.c`
- [Platform configuration](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c): `ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c`
- [Dynamic tables](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c): `DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c`

### Platform services

- [Processor inventory](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c): `ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c`
- [Boot management](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c): `ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c`
- [Graphics output](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.c): `ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.c`
- [Semihost filesystem](https://github.com/nvidia/edk2/blob/main-edk2-stable202508/ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c): `ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c`

### Other components

- **Platform developer**
- **Firmware image**

## Connections

- Platform developer → Build rules: uses
- Build rules → Shared build utilities: imports (evidence: `BaseTools/Source/Python/AutoGen/BuildEngine.py`)
- Build rules → Firmware image: builds
- Firmware image → SEC startup: boots
- Virtual platform → Platform configuration: configures
- Platform configuration → Dynamic tables: supplies configuration
