> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tsukineos.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Build Environment

> Build host dependencies and cross-compilation instructions.

# Build Environment

## Host Requirements

* Any modern Linux distribution (x86\_64 recommended)
* About 20 GB of free disk space
* Network access (to fetch kernel and BusyBox source)

## Dependencies (Debian/Ubuntu)

```bash theme={null}
sudo apt install build-essential bc flex bison libssl-dev libelf-dev \
  wget cpio gzip xz-utils
```

## Dependencies (Arch)

```bash theme={null}
sudo pacman -S base-devel openssl elfutils wget cpio gzip xz
```

## Static Build of BusyBox

```bash theme={null}
make menuconfig   # In Settings, enable "Build static binary"
make -j$(nproc)
```

## Cross-Compilation (Build ARM64 on an x86\_64 Host)

```bash theme={null}
sudo apt install gcc-aarch64-linux-gnu
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
# Build the kernel, BusyBox, and custom tools in this environment
```

## Tips

* Build inside TsukineOS or a clean container or virtual machine to avoid host library contamination.
* Specific compilation parameters for each component are in the current `TsukineOS` repository source code.

<Note>
  This page was translated by AI and may contain inaccuracies. The Simplified Chinese version is authoritative.
</Note>

***

© 2024-2026 TsutokiTeo/JunweiZhang. All rights reserved.
