File site/docs/build/index.md changed (mode: 100644) (index 9508b8e..db16e1c) |
... |
... |
do nicely. |
15 |
15 |
Introduction |
Introduction |
16 |
16 |
============ |
============ |
17 |
17 |
|
|
18 |
|
libreboot's build system is named `lbmk`, short for `LibreBoot MaKe`, and this |
|
|
18 |
|
Libreboot's build system is named `lbmk`, short for `LibreBoot MaKe`, and this |
19 |
19 |
document describes how to use it. With this guide, you can know how to compile |
document describes how to use it. With this guide, you can know how to compile |
20 |
20 |
libreboot from the available source code. |
libreboot from the available source code. |
21 |
21 |
|
|
22 |
22 |
The following document describes how `lbmk` works, and how you can make changes |
The following document describes how `lbmk` works, and how you can make changes |
23 |
23 |
to it: [libreboot maintenance manual](../maintain/) |
to it: [libreboot maintenance manual](../maintain/) |
24 |
24 |
|
|
|
25 |
|
System requirements |
|
26 |
|
=================== |
|
27 |
|
|
|
28 |
|
This concerns system requirements when *building* Libreboot. |
|
29 |
|
|
|
30 |
|
Operating system |
|
31 |
|
---------------- |
|
32 |
|
|
|
33 |
|
Any sensible Linux distribution will do. Libreboot's build system is regularly |
|
34 |
|
testing on all the major distros. Please do report bugs if you encounter |
|
35 |
|
issues. |
|
36 |
|
|
|
37 |
|
Host CPU |
|
38 |
|
-------- |
|
39 |
|
|
|
40 |
|
At least an Intel Core 2 Duo, though we recommend much faster CPUs if building |
|
41 |
|
entire release archives, e.g. quad-core Haswell CPU or better. |
|
42 |
|
|
|
43 |
|
NOTE: x86 boards require an *x86_64* host CPU with appropriate host toolchains |
|
44 |
|
and libraries. We don't yet cross-compile x86 payloads. |
|
45 |
|
|
|
46 |
|
NOTE2: ARM64 mainboards *are* cross compiled, so you can build for AArch64 |
|
47 |
|
machines quite easily, from x86 or ARM64 machines. |
|
48 |
|
|
|
49 |
|
NOTE3: *32-bit* x86 (i686) machines can be used to compile Libreboot, but |
|
50 |
|
MemTest86\+ is only compiled for 64-bit, and not cross compiled, so builds |
|
51 |
|
are disabled when lbmk detects a 32-bit host CPU. |
|
52 |
|
|
|
53 |
|
Memory |
|
54 |
|
------ |
|
55 |
|
|
|
56 |
|
At least 2GB per CPU core, ideally 4GB; for example, 16GB RAM is recommended |
|
57 |
|
if you're compiling an a quad-core CPU. |
|
58 |
|
|
|
59 |
|
NOTE: `XBMK_THREADS` environmental variable defaults to 1 if unset. This sets |
|
60 |
|
the number of build threads, which you should match to the number of cores. |
|
61 |
|
For example, when you're building on a quad-core, do this prior to building: |
|
62 |
|
|
|
63 |
|
export XBMK_THREADS=4 |
|
64 |
|
|
|
65 |
|
Disk space |
|
66 |
|
---------- |
|
67 |
|
|
|
68 |
|
About 20GB bare minimum, if only compiling for 1 board. The sources take up a |
|
69 |
|
lot of space. However, Libreboot is always expanding as it's developed. |
|
70 |
|
|
|
71 |
|
At least 50GB of free disk space is therefor recommended. |
|
72 |
|
|
|
73 |
|
We *actually* recommend 100GB, because Libreboot will also have a Linux distro |
|
74 |
|
in flash on a future release. On our testing, disk I/O does not seem to be a |
|
75 |
|
major bottleneck, so any HDD or SSD will do, but we obviously recommend a |
|
76 |
|
fast NVMe (PCI-E) SSD if you can. |
|
77 |
|
|
25 |
78 |
Multi-threaded builds |
Multi-threaded builds |
26 |
79 |
===================== |
===================== |
27 |
80 |
|
|
|
... |
... |
This version, if hosted live on libreboot.org, assumes that you are using |
51 |
104 |
the `lbmk` git repository, which |
the `lbmk` git repository, which |
52 |
105 |
you can download using the instructions on [the code review page](../../git.md). |
you can download using the instructions on [the code review page](../../git.md). |
53 |
106 |
|
|
54 |
|
A note about documentation (and this page) |
|
55 |
|
------------------------------------------ |
|
56 |
|
|
|
57 |
|
From Libreboot 20231021 onwards, *all* releases (including 20231021) |
|
58 |
|
have `lbwww.git` (the website) and `lbwww-img.git` (images for the website) |
|
59 |
|
archived in the *src* tar archive for that release; older releases were hit |
|
60 |
|
or miss, from 20210522 to 20230625, as to whether they came with documentation; |
|
61 |
|
releases older than 20210522 generally always came with documentation. Modern |
|
62 |
|
Libreboot documentation is written in Markdown (pandoc variant) |
|
63 |
|
|
|
64 |
|
If you're working with *release* documentation, you don't get the full HTML |
|
65 |
|
files (such as the one you're viewing now, if you're reading *this* page in a |
|
66 |
|
web browser), so either read the Markdown files directly, or compile them to |
|
67 |
|
HTML using the [Untitled Static Site Generator](https://untitled.vimuser.org/) |
|
68 |
|
(which is what the Libreboot project uses to generate HTML from those files). |
|
69 |
|
|
|
70 |
|
NOTE: `av.libreboot.org` is hardcoded as the domain name where images are |
|
71 |
|
pointed to, in `lbwww.git`, so you will need to replace these references in |
|
72 |
|
your local version, unless you're happy to just continue using those. |
|
73 |
|
|
|
74 |
107 |
Git |
Git |
75 |
108 |
=== |
=== |
76 |
109 |
|
|
|
... |
... |
example want to modify a config, e.g.: |
261 |
294 |
|
|
262 |
295 |
Or perhaps add a new board! The maintenance manual will teach you how the |
Or perhaps add a new board! The maintenance manual will teach you how the |
263 |
296 |
Libreboot build system (lbmk) works! |
Libreboot build system (lbmk) works! |
|
297 |
|
|
|
298 |
|
A note about documentation (and this page) |
|
299 |
|
========================================== |
|
300 |
|
|
|
301 |
|
From Libreboot 20231021 onwards, *all* releases (including 20231021) |
|
302 |
|
have `lbwww.git` (the website) and `lbwww-img.git` (images for the website) |
|
303 |
|
archived in the *src* tar archive for that release; older releases were hit |
|
304 |
|
or miss, from 20210522 to 20230625, as to whether they came with documentation; |
|
305 |
|
releases older than 20210522 generally always came with documentation. Modern |
|
306 |
|
Libreboot documentation is written in Markdown (pandoc variant) |
|
307 |
|
|
|
308 |
|
If you're working with *release* documentation, you don't get the full HTML |
|
309 |
|
files (such as the one you're viewing now, if you're reading *this* page in a |
|
310 |
|
web browser), so either read the Markdown files directly, or compile them to |
|
311 |
|
HTML using the [Untitled Static Site Generator](https://untitled.vimuser.org/) |
|
312 |
|
(which is what the Libreboot project uses to generate HTML from those files). |
|
313 |
|
|
|
314 |
|
NOTE: `av.libreboot.org` is hardcoded as the domain name where images are |
|
315 |
|
pointed to, in `lbwww.git`, so you will need to replace these references in |
|
316 |
|
your local version, unless you're happy to just continue using those. |
|
317 |
|
|
File site/docs/build/index.uk.md changed (mode: 100644) (index 8e8f3e7..04223bb) |
... |
... |
title: Побудова з джерельного коду |
3 |
3 |
x-toc-enable: true |
x-toc-enable: true |
4 |
4 |
... |
... |
5 |
5 |
|
|
|
6 |
|
**TODO: This page needs to be re-translated. Much of the newer sections are |
|
7 |
|
still in English, and there may be some differences aside from translation, |
|
8 |
|
versus the English version.** |
|
9 |
|
|
6 |
10 |
WARNING: eCryptfs file name limits |
WARNING: eCryptfs file name limits |
7 |
11 |
================================= |
================================= |
8 |
12 |
|
|
|
... |
... |
libreboot з доступного джерельного коду. |
30 |
34 |
Наступний документ описує те, як працює `lbmk`, і як ви можете робити зміни |
Наступний документ описує те, як працює `lbmk`, і як ви можете робити зміни |
31 |
35 |
до нього: [керівництво обслуговування libreboot](../maintain/) |
до нього: [керівництво обслуговування libreboot](../maintain/) |
32 |
36 |
|
|
|
37 |
|
System requirements |
|
38 |
|
=================== |
|
39 |
|
|
|
40 |
|
This concerns system requirements when *building* Libreboot. |
|
41 |
|
|
|
42 |
|
Operating system |
|
43 |
|
---------------- |
|
44 |
|
|
|
45 |
|
Any sensible Linux distribution will do. Libreboot's build system is regularly |
|
46 |
|
testing on all the major distros. Please do report bugs if you encounter |
|
47 |
|
issues. |
|
48 |
|
|
|
49 |
|
Host CPU |
|
50 |
|
-------- |
|
51 |
|
|
|
52 |
|
At least an Intel Core 2 Duo, though we recommend much faster CPUs if building |
|
53 |
|
entire release archives, e.g. quad-core Haswell CPU or better. |
|
54 |
|
|
|
55 |
|
NOTE: x86 boards require an *x86_64* host CPU with appropriate host toolchains |
|
56 |
|
and libraries. We don't yet cross-compile x86 payloads. |
|
57 |
|
|
|
58 |
|
NOTE2: ARM64 mainboards *are* cross compiled, so you can build for AArch64 |
|
59 |
|
machines quite easily, from x86 or ARM64 machines. |
|
60 |
|
|
|
61 |
|
NOTE3: *32-bit* x86 (i686) machines can be used to compile Libreboot, but |
|
62 |
|
MemTest86\+ is only compiled for 64-bit, and not cross compiled, so builds |
|
63 |
|
are disabled when lbmk detects a 32-bit host CPU. |
|
64 |
|
|
|
65 |
|
Memory |
|
66 |
|
------ |
|
67 |
|
|
|
68 |
|
At least 2GB per CPU core, ideally 4GB; for example, 16GB RAM is recommended |
|
69 |
|
if you're compiling an a quad-core CPU. |
|
70 |
|
|
|
71 |
|
NOTE: `XBMK_THREADS` environmental variable defaults to 1 if unset. This sets |
|
72 |
|
the number of build threads, which you should match to the number of cores. |
|
73 |
|
For example, when you're building on a quad-core, do this prior to building: |
|
74 |
|
|
|
75 |
|
export XBMK_THREADS=4 |
|
76 |
|
|
|
77 |
|
Disk space |
|
78 |
|
---------- |
|
79 |
|
|
|
80 |
|
About 20GB bare minimum, if only compiling for 1 board. The sources take up a |
|
81 |
|
lot of space. However, Libreboot is always expanding as it's developed. |
|
82 |
|
|
|
83 |
|
At least 50GB of free disk space is therefor recommended. |
|
84 |
|
|
|
85 |
|
We *actually* recommend 100GB, because Libreboot will also have a Linux distro |
|
86 |
|
in flash on a future release. On our testing, disk I/O does not seem to be a |
|
87 |
|
major bottleneck, so any HDD or SSD will do, but we obviously recommend a |
|
88 |
|
fast NVMe (PCI-E) SSD if you can. |
|
89 |
|
|
33 |
90 |
Multi-threaded builds |
Multi-threaded builds |
34 |
91 |
===================== |
===================== |
35 |
92 |
|
|