aboutsummaryrefslogtreecommitdiff
path: root/doc/grub.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/grub.md')
-rw-r--r--doc/grub.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/grub.md b/doc/grub.md
new file mode 100644
index 0000000..f112212
--- /dev/null
+++ b/doc/grub.md
@@ -0,0 +1,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/)