Побудова з джерельного коду


English | українська

попередній каталог

TODO: This page needs to be re-translated. Much of the newer sections are still in English, and there may be some differences aside from translation, versus the English version.

libre BIOS/UEFI firmware

Система побудови rboot, називається rbmk, скорочення від RBoot MaKe, і цей документ описує те, як використовувати її. З цим керівництвом ви можете узнати те, як побудувати rboot з доступного джерельного коду. Ця версія, якщо розміщена наживо на rboot.org, передбачає, що ви використовуєте сховище git rbmk, яке ви можете завантажити, використовуючи інструкції на сторінці огляду коду.

Якщо ви використовуєте архів випуску rboot, будь ласка, зверніться до документації, включеної до того випуску. Випуски rboot розраховані тільки, як знімки, не для розробки. Для належної розробки ви маєте завжди працювати безпосередньо в сховищі git rboot.

Наступний документ описує те, як працює rbmk, і як ви можете робити зміни до нього: керівництво обслуговування rboot

WARNING: eCryptfs file name limits

Do not run the build system on a eCryptfs file system, because it has very short file name limits and RBoot’s build system deals with very long file names.

System requirements

You must ensure that you have the correct operating system, CPU, RAM, disk space and so on.

System requirements are documented in the rbmk maintenance manual.

Multi-threaded builds

RBoot’s build system defaults to a single build thread, but you can change it by doing e.g.

export XBMK_THREADS=4

This would make rbmk run on 4 threads.

More specifically: when compiling source trees via script/trees, -jTHREADS is passed, where THREADS is the number of threads. This is also set when running xz commands for compression, using the -t option.

Environmental variables

Please read about environmental variables in the build instructions, before running rbmk. You should set your variables accordingly, though you do not technically need to; some of them may be useful, e.g. XBMK_THREADS (sets the number of build threads).

Environmental variables

Please read about environmental variables in the build instructions, before running rbmk. You should set your variables accordingly, though you do not technically need to; some of them may be useful, e.g. XBMK_THREADS (sets the number of build threads).

Система побудови RBoot використовує Git, обширно. Ви маєте виконати кроки знизу, навіть, якщо ви використовуєте архів випуску.

Перед тим, як вам використовувати систему побудови, будь ласка, знайте: система побудови, сама по собі, використовує Git обширно, коли завантажує програмне забезпечення, таке як coreboot, та проводить застосування виправлень.

Ви маєте переконатись в тому, щоб ініціалізувати ваш Git належним чином, перед тим, як почати, або інакше система побудови не буде працювати належно. Зробіть це:

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Змініть ім’я та адресу електронної пошти на будь-яку, що забажаєте, коли робите це.

Ви також можете захотіти прослідувати більшій кількості етапів тут: https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

Build

Zero..st, check time/date

Make sure date/hwclock report the correct time and date on your system, because parts of the build process download from HTTPS servers and wrong time or date can cause connections to be dropped during negotiation.

Побудова з джерельного коду

Фактична розробка/тестування завжди виконується безпосередньо за допомогою rbmk, і це також стосується збирання з джерельного коду. Ось кілька інструкцій, щоб почати:

Окремі сценарії також існують:

sudo ./mk dependencies parabola

Check: config/dependencies/ for list of supported distros.

MIPS cross compiler

RBoot has support for the Sony PlayStation (PS1/PSX), based on the PCSX-Redux Open BIOS. If you’re doing a full release build, and/or specifically building the PSX BIOS, you need a MIPS cross compiler.

If your distro doesn’t have the MIPS compiler available, the PlayStation page provides instructions for manual installation; please do this in addition to the normal dependencies.

Next, build ROM images

В якості результату, ви тепер можете (після встановлення правильних залежностей побудови) виконати лише одну команду, з свіжого Git clone, для побудови образів ROM:

./mk -b coreboot

або навіть побудувати конкретні образи ROM, такі як:

./mk -b coreboot lenovo_thinkpad_x60_2mb_bios

or get a list of supported build targets:

./mk -b coreboot list

Попередні кроки буде виконано автоматично. Однак, ви можете досі виконати окремі частини системи побудови власноруч, якщо виберете. Це може бути вигідно, коли ви робите зміни, та бажаєте протестувати конкретну частину rbmk.

Markdown: https://rboot.org/docs/build/index.uk.md

Індекс сайта

Ця сторінка була створена з Rboot Static Site Generator.