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