diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-14 22:56:57 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-14 22:56:57 +0200 |
commit | 6e4a1411112a0de85f07ce8606cf44b0e082b19f (patch) | |
tree | 4f7c9c7c4aad2471bf57a35c2bdf307f26bdf64d /doc | |
parent | Fix makefile not rebuilding on changes in header files (diff) | |
download | kernel.cpp-6e4a1411112a0de85f07ce8606cf44b0e082b19f.tar.xz |
Add grub build instructions
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grub.md | 39 |
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/) |