# antoinesayah/aml-original-linux-buildroot architecture

> Architecture diagram of the GitHub repository antoinesayah/aml-original-linux-buildroot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/antoinesayah/aml-original-linux-buildroot
- Repository: https://github.com/antoinesayah/aml-original-linux-buildroot

## Overview

This repository is an embedded Linux/Buildroot source tree used to assemble an Amlogic root filesystem and provide headers and libraries for building XBMC. The documented workflow is to install the vendor binary rootfs, configure and build Buildroot, then use the resulting rootfs contents for development. The tree also contains runtime packages for network-interface management and HTTP/Thunder transfers, plus the elf2flt toolchain utility. The excerpts show only parts of these subsystems, so links to unsampled behavior are omitted rather than inferred.

Main entry points: [`buildroot-2010.05/package/if_manager/src/src/if_manager.c`](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/src/if_manager.c) (Interface manager), [`buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c`](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c) (Transfer manager), [`buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c`](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c) (ELF to FLT), [`buildroot-2010.05`](https://github.com/antoinesayah/aml-original-linux-buildroot/tree/master/buildroot-2010.05) (Buildroot tree)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rootfs["Root filesystem"]
  node_buildroot["Buildroot tree<br/>[buildroot-2010.05]"]
  node_rootfs_result[("Rootfs result")]
end

subgraph group_network["Network management"]
  node_ifm_api["Interface API<br/>[if_manager.h]"]
  node_ifm_runtime["Interface manager<br/>[if_manager.c]"]
  node_ifm_def["Interface definitions<br/>[ifm_def.h]"]
end

subgraph group_transfer["Transfer services"]
  node_xfer_core["Transfer manager<br/>[transfer_manager.c]"]
  node_http["HTTP transfers<br/>[http_manager.c]"]
  node_http_api["HTTP task API<br/>[http_manager.h]"]
  node_thunder["Thunder transfers<br/>[thunder_manager.c]"]
  node_thunder_api["Thunder task API<br/>[thunder_manager.h]"]
end

subgraph group_toolchain["Toolchain utilities"]
  node_elf2flt["ELF to FLT<br/>[elf2flt.c]"]
  node_elf_format["ELF definitions<br/>[cygwin-elf.h]"]
  node_flat_format["FLT definitions<br/>[flat.h]"]
  node_flat_header["FLT header utility<br/>[flthdr.c]"]
end

node_engineer(("Platform engineer"))
node_vendor_root[("Vendor rootfs")]

node_engineer -->|"installs"| node_vendor_root
node_engineer -->|"configures and builds"| node_buildroot
node_buildroot -->|"produces"| node_rootfs_result
node_vendor_root -->|"provides base"| node_rootfs_result
node_ifm_api -->|"uses definitions"| node_ifm_def
node_ifm_runtime -->|"implements"| node_ifm_api
node_ifm_runtime -->|"uses definitions"| node_ifm_def
node_xfer_core -->|"dispatches HTTP"| node_http
node_xfer_core -->|"dispatches Thunder"| node_thunder
node_http -->|"implements"| node_http_api
node_thunder -->|"implements"| node_thunder_api
node_elf2flt -->|"reads definitions"| node_elf_format
node_elf2flt -->|"uses definitions"| node_flat_format
node_flat_header -->|"uses definitions"| node_flat_format

click node_buildroot "https://github.com/antoinesayah/aml-original-linux-buildroot/tree/master/buildroot-2010.05"
click node_ifm_api "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/include/if_manager.h"
click node_ifm_runtime "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/src/if_manager.c"
click node_ifm_def "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/include/ifm_def.h"
click node_xfer_core "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c"
click node_http "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/http/http_manager.c"
click node_http_api "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/http/http_manager.h"
click node_thunder "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.c"
click node_thunder_api "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.h"
click node_elf2flt "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c"
click node_elf_format "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/cygwin-elf.h"
click node_flat_format "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/flat.h"
click node_flat_header "https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/flthdr.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_buildroot,node_rootfs_result toneBlue
class node_ifm_api,node_ifm_runtime,node_ifm_def,node_vendor_root toneAmber
class node_xfer_core,node_http,node_http_api,node_thunder,node_thunder_api toneMint
class node_elf2flt,node_elf_format,node_flat_format,node_flat_header toneRose
class node_engineer toneIndigo
```

## Components

### Root filesystem

- [Buildroot tree](https://github.com/antoinesayah/aml-original-linux-buildroot/tree/master/buildroot-2010.05): `buildroot-2010.05`
- **Rootfs result**

### Network management

- [Interface API](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/include/if_manager.h): `buildroot-2010.05/package/if_manager/src/include/if_manager.h`
- [Interface manager](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/src/if_manager.c): `buildroot-2010.05/package/if_manager/src/src/if_manager.c`
- [Interface definitions](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/if_manager/src/include/ifm_def.h): `buildroot-2010.05/package/if_manager/src/include/ifm_def.h`

### Transfer services

- [Transfer manager](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c): `buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c`
- [HTTP transfers](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/http/http_manager.c): `buildroot-2010.05/package/libxfer/src/src/http/http_manager.c`
- [HTTP task API](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/http/http_manager.h): `buildroot-2010.05/package/libxfer/src/src/http/http_manager.h`
- [Thunder transfers](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.c): `buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.c`
- [Thunder task API](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.h): `buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.h`

### Toolchain utilities

- [ELF to FLT](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c): `buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c`
- [ELF definitions](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/cygwin-elf.h): `buildroot-2010.05/toolchain/elf2flt/elf2flt/cygwin-elf.h`
- [FLT definitions](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/flat.h): `buildroot-2010.05/toolchain/elf2flt/elf2flt/flat.h`
- [FLT header utility](https://github.com/antoinesayah/aml-original-linux-buildroot/blob/master/buildroot-2010.05/toolchain/elf2flt/elf2flt/flthdr.c): `buildroot-2010.05/toolchain/elf2flt/elf2flt/flthdr.c`

### Other components

- **Platform engineer**
- **Vendor rootfs**

## Connections

- Platform engineer → Vendor rootfs: installs
- Platform engineer → Buildroot tree: configures and builds
- Buildroot tree → Rootfs result: produces
- Vendor rootfs → Rootfs result: provides base
- Interface API → Interface definitions: uses definitions (evidence: `buildroot-2010.05/package/if_manager/src/include/if_manager.h`)
- Interface manager → Interface API: implements (evidence: `buildroot-2010.05/package/if_manager/src/src/if_manager.c`)
- Interface manager → Interface definitions: uses definitions (evidence: `buildroot-2010.05/package/if_manager/src/src/if_manager.c`)
- Transfer manager → HTTP transfers: dispatches HTTP (evidence: `buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c`)
- Transfer manager → Thunder transfers: dispatches Thunder (evidence: `buildroot-2010.05/package/libxfer/src/src/common/transfer_manager.c`)
- HTTP transfers → HTTP task API: implements (evidence: `buildroot-2010.05/package/libxfer/src/src/http/http_manager.c`)
- Thunder transfers → Thunder task API: implements (evidence: `buildroot-2010.05/package/libxfer/src/src/thunder/thunder_manager.c`)
- ELF to FLT → ELF definitions: reads definitions (evidence: `buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c`)
- ELF to FLT → FLT definitions: uses definitions (evidence: `buildroot-2010.05/toolchain/elf2flt/elf2flt/elf2flt.c`)
- FLT header utility → FLT definitions: uses definitions (evidence: `buildroot-2010.05/toolchain/elf2flt/elf2flt/flthdr.c`)
