# thegreateclipse/super-builders architecture

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

- Interactive diagram: https://gitdiagram.com/thegreateclipse/super-builders
- Repository: https://github.com/thegreateclipse/super-builders

## Overview

Super-Builders is a GitHub Actions pipeline that produces pre-patched GKI kernels for supported Android/kernel versions and KSU variants. Its documented path is to take stock GKI sources, apply SUSFS and variant safety patches plus ZeroMount, then use version-specific build support and compile. The README also describes the patch capabilities represented below. Workflow and patch internals were not sampled, so those links rely on README statements; the LZ4 relationships are supported by the source index and excerpts.

Main entry points: [`.github/workflows`](https://github.com/thegreateclipse/super-builders/tree/main/.github/workflows) (GitHub Actions), [`zram/lz4/lz4hc.c`](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4hc.c) (LZ4 HC Core), [`zram/include/linux/lz4.h`](https://github.com/thegreateclipse/super-builders/blob/main/zram/include/linux/lz4.h) (Kernel LZ4 Wrapper), [`zram/lz4/lz4.c`](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4.c) (LZ4 Core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Kernel Pipeline"]
  node_actions["GitHub Actions<br/>[workflows]"]
  node_gki["Stock GKI Sources"]
  node_outputs["Built Kernels"]
end

subgraph group_patches["Kernel Patches"]
  node_susfs["SUSFS Hiding"]
  node_zeromount["ZeroMount VFS"]
  node_safety["KSU Safety"]
end

subgraph group_support["Build Support"]
  node_compat["Kernel Compatibility<br/>[build-helpers]"]
  node_config["Kernel Config<br/>[defconfig.fragment]"]
end

subgraph group_compression["LZ4 Compression"]
  node_lz4api["LZ4 API<br/>[lz4.h]"]
  node_lz4core["LZ4 Core<br/>[lz4.c]"]
  node_lz4hcapi["LZ4 HC API<br/>[lz4hc.h]"]
  node_lz4hc["LZ4 HC Core<br/>[lz4hc.c]"]
  node_accelapi["ARM Acceleration API<br/>[lz4accel.h]"]
  node_accel["ARM Acceleration<br/>[lz4accel.c]"]
  node_linuxapi["Kernel LZ4 Wrapper<br/>[lz4.h]"]
end

node_builder(("Kernel Builder"))

node_builder -->|"starts builds"| node_actions
node_actions -->|"builds from"| node_gki
node_actions -->|"applies patches"| node_susfs
node_actions -->|"applies patches"| node_safety
node_actions -->|"applies patches"| node_zeromount
node_actions -->|"uses helpers"| node_compat
node_actions -->|"configures kernel"| node_config
node_actions -->|"compiles kernels"| node_outputs
node_lz4core -->|"implements API"| node_lz4api
node_lz4hc -->|"implements API"| node_lz4hcapi
node_lz4hc -->|"uses core"| node_lz4core
node_accel -->|"implements API"| node_accelapi
node_linuxapi -.->|"includes API"| node_lz4api
node_linuxapi -.->|"includes API"| node_lz4hcapi

click node_actions "https://github.com/thegreateclipse/super-builders/tree/main/.github/workflows"
click node_susfs "https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/KernelSU-Next/patches/51_enhanced_susfs-android12-5.10.patch"
click node_zeromount "https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/KernelSU-Next/patches/60_zeromount-android12-5.10.patch"
click node_safety "https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/KernelSU-Next/patches/70_ksu_safety-kernelsu-next-5.10.patch"
click node_compat "https://github.com/thegreateclipse/super-builders/tree/main/android12-5.10/build-helpers"
click node_config "https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/defconfig.fragment"
click node_lz4api "https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4.h"
click node_lz4core "https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4.c"
click node_lz4hcapi "https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4hc.h"
click node_lz4hc "https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4hc.c"
click node_accelapi "https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4armv8/lz4accel.h"
click node_accel "https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4armv8/lz4accel.c"
click node_linuxapi "https://github.com/thegreateclipse/super-builders/blob/main/zram/include/linux/lz4.h"

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_actions,node_gki,node_outputs toneBlue
class node_susfs,node_zeromount,node_safety toneAmber
class node_compat,node_config toneMint
class node_lz4api,node_lz4core,node_lz4hcapi,node_lz4hc,node_accelapi,node_accel,node_linuxapi toneRose
class node_builder toneIndigo
```

## Components

### Kernel Pipeline

- [GitHub Actions](https://github.com/thegreateclipse/super-builders/tree/main/.github/workflows): `.github/workflows`
- **Stock GKI Sources**
- **Built Kernels**

### Kernel Patches

- [SUSFS Hiding](https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/KernelSU-Next/patches/51_enhanced_susfs-android12-5.10.patch): `android12-5.10/KernelSU-Next/patches/51_enhanced_susfs-android12-5.10.patch`
- [ZeroMount VFS](https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/KernelSU-Next/patches/60_zeromount-android12-5.10.patch): `android12-5.10/KernelSU-Next/patches/60_zeromount-android12-5.10.patch`
- [KSU Safety](https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/KernelSU-Next/patches/70_ksu_safety-kernelsu-next-5.10.patch): `android12-5.10/KernelSU-Next/patches/70_ksu_safety-kernelsu-next-5.10.patch`

### Build Support

- [Kernel Compatibility](https://github.com/thegreateclipse/super-builders/tree/main/android12-5.10/build-helpers): `android12-5.10/build-helpers`
- [Kernel Config](https://github.com/thegreateclipse/super-builders/blob/main/android12-5.10/defconfig.fragment): `android12-5.10/defconfig.fragment`

### LZ4 Compression

- [LZ4 API](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4.h): `zram/lz4/lz4.h`
- [LZ4 Core](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4.c): `zram/lz4/lz4.c`
- [LZ4 HC API](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4hc.h): `zram/lz4/lz4hc.h`
- [LZ4 HC Core](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4hc.c): `zram/lz4/lz4hc.c`
- [ARM Acceleration API](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4armv8/lz4accel.h): `zram/lz4/lz4armv8/lz4accel.h`
- [ARM Acceleration](https://github.com/thegreateclipse/super-builders/blob/main/zram/lz4/lz4armv8/lz4accel.c): `zram/lz4/lz4armv8/lz4accel.c`
- [Kernel LZ4 Wrapper](https://github.com/thegreateclipse/super-builders/blob/main/zram/include/linux/lz4.h): `zram/include/linux/lz4.h`

### Other components

- **Kernel Builder**

## Connections

- Kernel Builder → GitHub Actions: starts builds (evidence: `README.md`)
- GitHub Actions → Stock GKI Sources: builds from (evidence: `README.md`)
- GitHub Actions → SUSFS Hiding: applies patches (evidence: `README.md`)
- GitHub Actions → KSU Safety: applies patches (evidence: `README.md`)
- GitHub Actions → ZeroMount VFS: applies patches (evidence: `README.md`)
- GitHub Actions → Kernel Compatibility: uses helpers (evidence: `README.md`)
- GitHub Actions → Kernel Config: configures kernel (evidence: `README.md`)
- GitHub Actions → Built Kernels: compiles kernels (evidence: `README.md`)
- LZ4 Core → LZ4 API: implements API (evidence: `zram/lz4/lz4.c`)
- LZ4 HC Core → LZ4 HC API: implements API (evidence: `zram/lz4/lz4hc.c`)
- LZ4 HC Core → LZ4 Core: uses core (evidence: `zram/lz4/lz4hc.c`)
- ARM Acceleration → ARM Acceleration API: implements API (evidence: `zram/lz4/lz4armv8/lz4accel.c`)
- Kernel LZ4 Wrapper → LZ4 API: includes API
- Kernel LZ4 Wrapper → LZ4 HC API: includes API
