From 6e4a1411112a0de85f07ce8606cf44b0e082b19f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 14 Feb 2021 22:56:57 +0200 Subject: Add grub build instructions --- doc/grub.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 doc/grub.md (limited to 'doc') 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/) -- cgit v1.2.1