efivar-37

Introduction to efivar

The efivar package provides tools and libraries to manipulate EFI variables.

This package is known to build and work properly using an LFS-11.0 platform.

Package Information

Additional Downloads

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/efivar

Installation of efivar

First, apply a patch to fix an issue building with GCC 9 or later:

patch -Np1 -i ../efivar-37-gcc_9-1.patch

Build efivar with the following commands:

make CFLAGS="-O2 -Wno-stringop-truncation"

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.

Now, as the root user:

make install LIBDIR=/usr/lib

Command Explanations

CFLAGS="-O2 -Wno-stringop-truncation": This option overrides the default compiler flags to avoid a build failure.

LIBDIR=/usr/lib: This option overrides the default library directory of the package (/usr/lib64, which is not used by LFS.)

Contents

Installed Programs: efivar
Installed Libraries: libefiboot.so and libefivar.so
Installed Directories: /usr/include/efivar

Short Descriptions

efivar

is a tool to manipulate UEFI variables

libefiboot.so

is a library used by efibootmgr

libefivar.so

is a library for the manipulation of EFI variables

Last updated on