blob: f112212c9d993da25c41bdd003e43141a7058f00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
## Building with clang
There are three different build types:
env | used for
-------|-----------------------|-------------------
build | building grub | CC, CFLAGS, etc.
host | running the utilities | BUILD
target | running grub | TARGET
- set ``CC``, ``BUILD_CC`` and ``TARGET_CC`` to clang
``
./configure --disable-werror --prefix=/
make -j6
make DESTDIR=../grub-tools/ install
``
### list of configure flags
flag |
-----------------------|---------------------------------------
--enable-efiemu | efiemu runtimes
--enable-mm-debug | include memory manager debugging
--enable-cache-stats | enable disk cache stat collection
--enable-boot-time | enable boot time stat collection
--enable-grub-emu-sdl | build grub-emu with SDL support
--enable-grub-emu-pci | build grub-emu with PCI support
--enable-grub-mkfont | grub-mkfont
--enable-grub-themes | grub themes
--enable-grub-mount | grub mount
--enable-device-mapper | enable linux device-mapper support
--enable-liblzma | lzma compression
--enable-libzfs | libzfs
--disable-werror | do not use -Werror when building
## grub tools
grub-file | check if file is of specified type
grub-script-check | check config for syntax errors
## links
[tarballs](https://ftp.gnu.org/gnu/grub/)
|