config: Add and document FW_TYPE built-in macro. Fixes #422

This commit is contained in:
mintsuki
2024-10-27 02:51:31 +02:00
parent 1e299ae403
commit 29907c9d12
3 changed files with 12 additions and 1 deletions

View File

@@ -198,3 +198,4 @@ Macros must always be placed inside `${...}` where `...` is the arbitrary macro
Limine automatically defines these macros:
* `ARCH` - This built-in macro expands to the architecture of the machine. Possible values are: `x86-64`, `ia-32`, `aarch64`, `riscv64`, `loongarch64`. In the case of IA-32, BIOS or UEFI, the macro will always expand to `x86-64` if the 64-bit extensions are available, else `ia-32`.
* `FW_TYPE` - This built-in macro expands to `UEFI` if booted using UEFI firmware, or `BIOS` if booted using legacy x86 BIOS.