> ## 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.

# بيئة البناء

> تبعيات مضيف البناء وتعليمات التجميع المتقاطع

# بيئة البناء

## متطلبات المضيف

* أي توزيعة Linux حديثة (يُنصح بـ x86\_64)
* حوالي 20 غيغابايت من المساحة المتاحة على القرص
* اتصال بالشبكة (لجلب مصادر النواة وBusyBox)

## التبعيات (Debian/Ubuntu)

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

## التبعيات (Arch)

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

## تجميع BusyBox بشكل ثابت

```bash theme={null}
make menuconfig   # فعّل "Build static binary" في الإعدادات
make -j$(nproc)
```

## التجميع المتقاطع (بناء ARM64 على مضيف x86\_64)

```bash theme={null}
sudo apt install gcc-aarch64-linux-gnu
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
# يتم تجميع النواة وBusyBox والأدوات المخصصة في هذا البيئة
```

## نصائح

* يُنصح بالبناء في TsukineOS أو في حاوية/جهاز افتراضي نظيف، لتجنب تلوث المكتبات المضيفة.
* معاملات التجميع المحددة لكل مكون متوفرة في مصدر مستودع `TsukineOS` الحالي.

<Note>
  تمت ترجمة هذه الصفحة بواسطة الذكاء الاصطناعي وقد تحتوي على أخطاء. النسخة الصينية المبسطة هي المرجع.
</Note>

***

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