[756a787] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY efivar-download-http "https://github.com/rhboot/efivar/releases/download/&efivar-version;/efivar-&efivar-version;.tar.bz2">
|
---|
| 8 | <!ENTITY efivar-download-ftp " ">
|
---|
[7a91c80] | 9 | <!ENTITY efivar-md5sum "243fdbc48440212695cb9c6e6fd0f44f">
|
---|
| 10 | <!ENTITY efivar-size "316 KB">
|
---|
| 11 | <!ENTITY efivar-buildsize "18 MB">
|
---|
[756a787] | 12 | <!ENTITY efivar-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="efivar" xreflabel="efivar-&efivar-version;">
|
---|
| 16 | <?dbhtml filename="efivar.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[fda29e4] | 19 | <date>$Date$</date>
|
---|
[756a787] | 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>efivar-&efivar-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="efivar">
|
---|
| 25 | <primary sortas="a-efivar">efivar</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to efivar</title>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
| 32 | The <application>efivar</application> package provides tools and
|
---|
| 33 | libraries to manipulate EFI variables.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[16f7f0e] | 36 | &lfs112_checked;
|
---|
[756a787] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&efivar-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&efivar-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &efivar-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &efivar-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &efivar-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &efivar-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[99ae185e] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | Required patch (for 32-bit systems):
|
---|
| 77 | <ulink url="&patch-root;/efivar-&efivar-version;-i686-1.patch"/>
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 |
|
---|
[7a91c80] | 82 | <bridgehead renderas="sect3">efivar Dependencies</bridgehead>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 85 | <para role="required">
|
---|
| 86 | <xref linkend="mandoc"/>
|
---|
| 87 | </para>
|
---|
[756a787] | 88 |
|
---|
| 89 | <para condition="html" role="usernotes">User Notes:
|
---|
| 90 | <ulink url="&blfs-wiki;/efivar"/></para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of efivar</title>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
[7a91c80] | 98 | First, fix an issue in Makefile causing the package to be rebuilt
|
---|
| 99 | during installation:
|
---|
[756a787] | 100 | </para>
|
---|
| 101 |
|
---|
[7a91c80] | 102 | <screen><userinput>sed '/prep :/a\\ttouch prep' -i src/Makefile</userinput></screen>
|
---|
[756a787] | 103 |
|
---|
[d1a3a2f9] | 104 | <para>
|
---|
| 105 | Now adapt this package for a change in glibc-2.36:
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <screen><userinput>sed '/sys\/mount\.h/d' -i src/util.h
|
---|
| 109 | sed '/unistd\.h/a#include <sys/mount.h>' -i src/gpt.c src/linux.c</userinput></screen>
|
---|
| 110 |
|
---|
[99ae185e] | 111 | <para>
|
---|
| 112 | If building this package on a 32-bit system, apply a patch:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>[ $(getconf LONG_BIT) = 64 ] || patch -Np1 -i ../efivar-&efivar-version;-i686-1.patch</userinput></screen>
|
---|
| 116 |
|
---|
[756a787] | 117 | <para>
|
---|
[d5cc78a] | 118 | Build <application>efivar</application> with the following commands:
|
---|
[756a787] | 119 | </para>
|
---|
| 120 |
|
---|
[7a91c80] | 121 | <screen><userinput>make</userinput></screen>
|
---|
[756a787] | 122 |
|
---|
| 123 | <para>
|
---|
| 124 | The test suite of this package is dangerous. Running it may trigger
|
---|
| 125 | firmware bugs and make your system unusable without using some special
|
---|
| 126 | hardware to reprogram the firmware.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
[cd73bb8] | 133 | <screen role="root"><userinput>make install LIBDIR=/usr/lib</userinput></screen>
|
---|
[756a787] | 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | <parameter>LIBDIR=/usr/lib</parameter>:
|
---|
| 142 | This option overrides the default library directory of the package
|
---|
| 143 | (<filename class="directory">/usr/lib64</filename>, which is not used
|
---|
| 144 | by LFS.)
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="content">
|
---|
| 150 | <title>Contents</title>
|
---|
| 151 |
|
---|
| 152 | <segmentedlist>
|
---|
| 153 | <segtitle>Installed Programs</segtitle>
|
---|
| 154 | <segtitle>Installed Libraries</segtitle>
|
---|
| 155 | <segtitle>Installed Directories</segtitle>
|
---|
| 156 |
|
---|
| 157 | <seglistitem>
|
---|
| 158 | <seg>
|
---|
[7a91c80] | 159 | efisecdb and efivar
|
---|
[756a787] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
[7a91c80] | 162 | libefiboot.so, libefisec.so, and libefivar.so
|
---|
[756a787] | 163 | </seg>
|
---|
| 164 | <seg>
|
---|
| 165 | /usr/include/efivar
|
---|
| 166 | </seg>
|
---|
| 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
| 169 |
|
---|
| 170 | <variablelist>
|
---|
| 171 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 172 | <?dbfo list-presentation="list"?>
|
---|
| 173 | <?dbhtml list-presentation="table"?>
|
---|
| 174 |
|
---|
[7a91c80] | 175 | <varlistentry id="efisecdb">
|
---|
| 176 | <term><command>efisecdb</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>
|
---|
| 179 | is an utility for managing UEFI signature lists
|
---|
| 180 | </para>
|
---|
| 181 | <indexterm zone="efivar efisecdb">
|
---|
| 182 | <primary sortas="b-efisecdb">efisecdb</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
[756a787] | 187 | <varlistentry id="efivar-prog">
|
---|
| 188 | <term><command>efivar</command></term>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>
|
---|
| 191 | is a tool to manipulate UEFI variables
|
---|
| 192 | </para>
|
---|
| 193 | <indexterm zone="efivar efivar-prog">
|
---|
| 194 | <primary sortas="b-efivar">efivar</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="libefiboot">
|
---|
| 200 | <term><filename class="libraryfile">libefiboot.so</filename></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>
|
---|
| 203 | is a library used by <command>efibootmgr</command>
|
---|
| 204 | </para>
|
---|
| 205 | <indexterm zone="efivar libefiboot">
|
---|
| 206 | <primary sortas="c-libefiboot">libefiboot.so</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
[7a91c80] | 211 | <varlistentry id="libefisec">
|
---|
| 212 | <term><filename class="libraryfile">libefisec.so</filename></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>
|
---|
| 215 | is a library for managing UEFI signature lists
|
---|
| 216 | </para>
|
---|
| 217 | <indexterm zone="efivar libefisec">
|
---|
| 218 | <primary sortas="c-libefisec">libefisec.so</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
[756a787] | 223 | <varlistentry id="libefivar">
|
---|
| 224 | <term><filename class="libraryfile">libefivar.so</filename></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>
|
---|
| 227 | is a library for the manipulation of EFI variables
|
---|
| 228 | </para>
|
---|
| 229 | <indexterm zone="efivar libefiboot">
|
---|
| 230 | <primary sortas="c-libefiboot">libefiboot.so</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | </variablelist>
|
---|
| 236 |
|
---|
| 237 | </sect2>
|
---|
| 238 |
|
---|
| 239 | </sect1>
|
---|