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 " ">
|
---|
9 | <!ENTITY efivar-md5sum "243fdbc48440212695cb9c6e6fd0f44f">
|
---|
10 | <!ENTITY efivar-size "316 KB">
|
---|
11 | <!ENTITY efivar-buildsize "18 MB">
|
---|
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 |
|
---|
33 | &lfs120_checked;
|
---|
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 |
|
---|
69 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
70 | <itemizedlist spacing="compact">
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Optional patch (Required for 32-bit systems):
|
---|
74 | <ulink url="&patch-root;/efivar-&efivar-version;-i686-1.patch"/>
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | </itemizedlist>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect3">efivar Dependencies</bridgehead>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
82 | <para role="required">
|
---|
83 | <xref linkend="mandoc"/>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="installation">
|
---|
90 | <title>Installation of efivar</title>
|
---|
91 |
|
---|
92 | <para>
|
---|
93 | First, fix an issue in Makefile causing the package to be rebuilt
|
---|
94 | during installation:
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <screen><userinput>sed '/prep :/a\\ttouch prep' -i src/Makefile</userinput></screen>
|
---|
98 |
|
---|
99 | <note>
|
---|
100 | <para>
|
---|
101 | This package cannot function properly on a 32-bit system with a
|
---|
102 | 64-bit UEFI implementation. Don't install this package (or
|
---|
103 | efibootmgr) on 32-bit system unless you are absolutely sure you have
|
---|
104 | a 32-bit UEFI implementation, which is very rare in practice.
|
---|
105 | </para>
|
---|
106 | </note>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | If building this package on a 32-bit system, apply a patch:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen><userinput>[ $(getconf LONG_BIT) = 64 ] || patch -Np1 -i ../efivar-&efivar-version;-i686-1.patch</userinput></screen>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | Build <application>efivar</application> with the following commands:
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <screen><userinput>make ERRORS=</userinput></screen>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | The test suite of this package is dangerous. Running it may trigger
|
---|
122 | firmware bugs and make your system unusable without using some special
|
---|
123 | hardware to reprogram the firmware.
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <para>
|
---|
127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | <screen role="root"><userinput>make install LIBDIR=/usr/lib</userinput></screen>
|
---|
131 |
|
---|
132 | </sect2>
|
---|
133 |
|
---|
134 | <sect2 role="commands">
|
---|
135 | <title>Command Explanations</title>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | <parameter>ERRORS=</parameter>:
|
---|
139 | This option overrides the <option>-Werror</option> passed to GCC
|
---|
140 | by default, so the package won't fail to build with the
|
---|
141 | <option>-Wenum-int-mismatch</option> warning introduced in GCC 13.
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | <parameter>LIBDIR=/usr/lib</parameter>:
|
---|
146 | This option overrides the default library directory of the package
|
---|
147 | (<filename class="directory">/usr/lib64</filename>, which is not used
|
---|
148 | by LFS.)
|
---|
149 | </para>
|
---|
150 |
|
---|
151 | </sect2>
|
---|
152 |
|
---|
153 | <sect2 role="content">
|
---|
154 | <title>Contents</title>
|
---|
155 |
|
---|
156 | <segmentedlist>
|
---|
157 | <segtitle>Installed Programs</segtitle>
|
---|
158 | <segtitle>Installed Libraries</segtitle>
|
---|
159 | <segtitle>Installed Directories</segtitle>
|
---|
160 |
|
---|
161 | <seglistitem>
|
---|
162 | <seg>
|
---|
163 | efisecdb and efivar
|
---|
164 | </seg>
|
---|
165 | <seg>
|
---|
166 | libefiboot.so, libefisec.so, and libefivar.so
|
---|
167 | </seg>
|
---|
168 | <seg>
|
---|
169 | /usr/include/efivar
|
---|
170 | </seg>
|
---|
171 | </seglistitem>
|
---|
172 | </segmentedlist>
|
---|
173 |
|
---|
174 | <variablelist>
|
---|
175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
176 | <?dbfo list-presentation="list"?>
|
---|
177 | <?dbhtml list-presentation="table"?>
|
---|
178 |
|
---|
179 | <varlistentry id="efisecdb">
|
---|
180 | <term><command>efisecdb</command></term>
|
---|
181 | <listitem>
|
---|
182 | <para>
|
---|
183 | is an utility for managing UEFI signature lists
|
---|
184 | </para>
|
---|
185 | <indexterm zone="efivar efisecdb">
|
---|
186 | <primary sortas="b-efisecdb">efisecdb</primary>
|
---|
187 | </indexterm>
|
---|
188 | </listitem>
|
---|
189 | </varlistentry>
|
---|
190 |
|
---|
191 | <varlistentry id="efivar-prog">
|
---|
192 | <term><command>efivar</command></term>
|
---|
193 | <listitem>
|
---|
194 | <para>
|
---|
195 | is a tool to manipulate UEFI variables
|
---|
196 | </para>
|
---|
197 | <indexterm zone="efivar efivar-prog">
|
---|
198 | <primary sortas="b-efivar">efivar</primary>
|
---|
199 | </indexterm>
|
---|
200 | </listitem>
|
---|
201 | </varlistentry>
|
---|
202 |
|
---|
203 | <varlistentry id="libefiboot">
|
---|
204 | <term><filename class="libraryfile">libefiboot.so</filename></term>
|
---|
205 | <listitem>
|
---|
206 | <para>
|
---|
207 | is a library used by <command>efibootmgr</command>
|
---|
208 | </para>
|
---|
209 | <indexterm zone="efivar libefiboot">
|
---|
210 | <primary sortas="c-libefiboot">libefiboot.so</primary>
|
---|
211 | </indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | <varlistentry id="libefisec">
|
---|
216 | <term><filename class="libraryfile">libefisec.so</filename></term>
|
---|
217 | <listitem>
|
---|
218 | <para>
|
---|
219 | is a library for managing UEFI signature lists
|
---|
220 | </para>
|
---|
221 | <indexterm zone="efivar libefisec">
|
---|
222 | <primary sortas="c-libefisec">libefisec.so</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="libefivar">
|
---|
228 | <term><filename class="libraryfile">libefivar.so</filename></term>
|
---|
229 | <listitem>
|
---|
230 | <para>
|
---|
231 | is a library for the manipulation of EFI variables
|
---|
232 | </para>
|
---|
233 | <indexterm zone="efivar libefiboot">
|
---|
234 | <primary sortas="c-libefiboot">libefiboot.so</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | </variablelist>
|
---|
240 |
|
---|
241 | </sect2>
|
---|
242 |
|
---|
243 | </sect1>
|
---|