:: commit 6a6171d5e11bee364ec942241f9accebbee65937

mintsuki <mintsuki@protonmail.com> — 2020-09-13 13:47

parents: ccbba7eeb5

Update README.md

diff --git a/Makefile b/Makefile
index 39498d6a..8321224f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,13 @@ CC = cc
 OBJCOPY = objcopy
 CFLAGS = -O2 -pipe -Wall -Wextra
 
-.PHONY: all limine install clean echfs-test ext2-test test.img
+.PHONY: all toolchain limine install clean echfs-test ext2-test test.img
 
 all: limine-install
 
+toolchain:
+	cd toolchain && ./make_toolchain.sh -j`nproc`
+
 limine:
 	$(MAKE) -C src all
 	cp src/limine.bin ./
diff --git a/README.md b/README.md
index db2e138e..9412119b 100644
--- a/README.md
+++ b/README.md
@@ -18,14 +18,30 @@ x86/x86_64 BIOS Bootloader
 
 ## Building
 
-### Dependencies
-To build Limine, it is necessary to have an LLVM/Clang toolchain installed.
-More specifically, the following programs need to be present: `clang`, `llvm-objcopy`,
-`llvm-link`, `opt`, `ld.lld`.
-Furthermore, `nasm` also needs to be installed.
-`curl`, `tar`, and `zstd` need to be installed for retrieving `libgcc.a` during build.
-
-### Compiling
+### Building the bootloader
+Building the bootloader is not necessary as a prebuilt copy is shipped in this
+repository (`limine.bin`).
+
+Should one want to build the bootloader to make sure the shipped copy is authentic,
+to develop, to debug, or any other reason, it is necessary to first build the
+set of tools that the bootloader needs in order to be built.
+
+This can be accomplished by running:
+```bash
+make toolchain
+```
+
+After that is done, the bootloader itself can be built with:
+```bash
+make limine
+```
+
+A newly generated `limine.bin` image should now be present in the root dir of the repo.
+
+This newly built image should match 1:1 (aka, same checksum) as the one shipped with the
+respective commit.
+
+### Compiling `limine-install`
 A simple `make` and `make install` will suffice. Use the PREFIX variable with
 `make install` to specify where to install `limine-install`. It defaults to
 `/usr/local`.
@@ -76,6 +92,7 @@ limine-install test.img
 
 One can get `echfs-utils` by installing https://github.com/qword-os/echfs.
 
+## Acknowledgments
 Limine uses a stripped-down version of https://github.com/jibsen/tinf
 
 ## Discord server
tab: 248 wrap: offon