[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 " ">
|
---|
| 9 | <!ENTITY efivar-md5sum "9f067275c5f7aafdd75bfb364280ac9c">
|
---|
| 10 | <!ENTITY efivar-size "108 KB">
|
---|
| 11 | <!ENTITY efivar-buildsize "2.75 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 | <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 |
|
---|
| 36 | &lfs101_checked;
|
---|
| 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 |
|
---|
| 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | Required patch:
|
---|
| 77 | <ulink url="&patch-root;/efivar-&efivar-version;-gcc_9-1.patch"/>
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 |
|
---|
| 82 | <para condition="html" role="usernotes">User Notes:
|
---|
| 83 | <ulink url="&blfs-wiki;/efivar"/></para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of efivar</title>
|
---|
| 89 |
|
---|
| 90 | <para>
|
---|
[d5cc78a] | 91 | First, apply a patch to fix an issue building with GCC 9 or later:
|
---|
[756a787] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <screen><userinput>patch -Np1 -i ../efivar-37-gcc_9-1.patch</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
[d5cc78a] | 97 | Build <application>efivar</application> with the following commands:
|
---|
[756a787] | 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput>make CFLAGS="-O2 -Wno-stringop-truncation"</userinput></screen>
|
---|
| 101 |
|
---|
| 102 | <para>
|
---|
| 103 | The test suite of this package is dangerous. Running it may trigger
|
---|
| 104 | firmware bugs and make your system unusable without using some special
|
---|
| 105 | hardware to reprogram the firmware.
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <para>
|
---|
| 109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <screen role="root"><userinput>make install LIBDIR=/usr/lib BINDIR=/bin</userinput></screen>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | Move the shared libraries to <filename class="directory">/lib</filename>,
|
---|
| 116 | and recreate the symlinks in <filename class="directory">/usr/lib</filename>:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen role="root"><userinput>mv /usr/lib/libefi{boot,var}.so.* /lib &&
|
---|
| 120 | ln -sfv ../../lib/$(readlink /usr/lib/libefiboot.so) /usr/lib/libefiboot.so &&
|
---|
| 121 | ln -sfv ../../lib/$(readlink /usr/lib/libefivar.so) /usr/lib/libefivar.so
|
---|
| 122 | </userinput></screen>
|
---|
| 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
| 130 | <parameter>CFLAGS="-O2 -Wno-stringop-truncation"</parameter>:
|
---|
[d5cc78a] | 131 | This option overrides the default compiler flags to avoid a build failure.
|
---|
[756a787] | 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
| 135 | <parameter>LIBDIR=/usr/lib</parameter>:
|
---|
| 136 | This option overrides the default library directory of the package
|
---|
| 137 | (<filename class="directory">/usr/lib64</filename>, which is not used
|
---|
| 138 | by LFS.)
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | <parameter>BINDIR=/bin</parameter>:
|
---|
| 143 | Make <command>efivar</command> avaliable even if
|
---|
| 144 | <filename class="directory">/usr</filename> is offline.
|
---|
| 145 | </para>
|
---|
| 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>
|
---|
| 158 | efivar
|
---|
| 159 | </seg>
|
---|
| 160 | <seg>
|
---|
| 161 | libefiboot.so and libefivar.so
|
---|
| 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 |
|
---|
| 174 | <varlistentry id="efivar-prog">
|
---|
| 175 | <term><command>efivar</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>
|
---|
| 178 | is a tool to manipulate UEFI variables
|
---|
| 179 | </para>
|
---|
| 180 | <indexterm zone="efivar efivar-prog">
|
---|
| 181 | <primary sortas="b-efivar">efivar</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="libefiboot">
|
---|
| 187 | <term><filename class="libraryfile">libefiboot.so</filename></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>
|
---|
| 190 | is a library used by <command>efibootmgr</command>
|
---|
| 191 | </para>
|
---|
| 192 | <indexterm zone="efivar libefiboot">
|
---|
| 193 | <primary sortas="c-libefiboot">libefiboot.so</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="libefivar">
|
---|
| 199 | <term><filename class="libraryfile">libefivar.so</filename></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>
|
---|
| 202 | is a library for the manipulation of EFI variables
|
---|
| 203 | </para>
|
---|
| 204 | <indexterm zone="efivar libefiboot">
|
---|
| 205 | <primary sortas="c-libefiboot">libefiboot.so</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | </variablelist>
|
---|
| 211 |
|
---|
| 212 | </sect2>
|
---|
| 213 |
|
---|
| 214 | </sect1>
|
---|