The efivar package provides tools and libraries to manipulate EFI variables.
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://github.com/rhboot/efivar/releases/download/38/efivar-38.tar.bz2
ダウンロード MD5 sum: 243fdbc48440212695cb9c6e6fd0f44f
ダウンロードサイズ: 316 KB
必要ディスク容量: 18 MB
概算ビルド時間: 0.1 SBU 以下
Optional patch (Required for 32-bit systems): https://www.linuxfromscratch.org/patches/blfs/svn/efivar-38-i686-1.patch
First, fix an issue in Makefile causing the package to be rebuilt during installation:
sed '/prep :/a\\ttouch prep' -i src/Makefile
This package cannot function properly on a 32-bit system with a 64-bit UEFI implementation. Don't install this package (or efibootmgr) on 32-bit system unless you are absolutely sure you have a 32-bit UEFI implementation, which is very rare in practice.
If building this package on a 32-bit system, apply a patch:
[ $(getconf LONG_BIT) = 64 ] || patch -Np1 -i ../efivar-38-i686-1.patch
以下のコマンドを実行して efivar をビルドします。
make ERRORS=
The test suite of this package is dangerous. Running it may trigger firmware bugs and make your system unusable without using some special hardware to reprogram the firmware.
root
ユーザーになって以下を実行します。
make install LIBDIR=/usr/lib
ERRORS=
: This option
overrides the -Werror
passed to GCC by
default, so the package won't fail to build with the -Wenum-int-mismatch
warning introduced in GCC 13.
LIBDIR=/usr/lib
: This
option overrides the default library directory of the package
(/usr/lib64
, which is not used by
LFS.)