source: BOOK/boot/common/kmod.xml@ d7aca45

systemd
Last change on this file since d7aca45 was 7cd7f99, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 2.7 KB
Line 
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
8<sect1 id="ch-boot-kmod" role="wrap">
9 <?dbhtml filename="kmod.html"?>
10
11 <title>Kmod-&kmod-version;</title>
12
13 <indexterm zone="ch-boot-kmod">
14 <primary sortas="a-Kmod">Kmod</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/kmod.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Kmod</title>
24
25 <para os="s1">The following <command>sed</command> changes Kmod's default
26 module search location to
27 <filename class="directory">/tools/lib/modules</filename>:</para>
28
29<screen os="s2"><userinput>cp -v libkmod/libkmod.c{,.orig}
30sed '/dirname_default_prefix /s@/lib/modules@/tools&amp;@' \
31 libkmod/libkmod.c.orig &gt; libkmod/libkmod.c</userinput></screen>
32
33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
34 href="../../final-system/common/kmod.xml"
35 xpointer="xpointer(//*[@os='a'])"/>
36
37<screen os="b"><userinput>./configure \
38 --prefix=/tools \
39 --build=${CLFS_HOST} \
40 --host=${CLFS_TARGET} \
41 --with-xz \
42 --with-zlib</userinput></screen>
43
44 <variablelist os="c">
45 <title>The meaning of the new configure options:</title>
46
47 <varlistentry>
48 <term><parameter>--with-zlib --with-xz</parameter></term>
49 <listitem>
50 <para>These allow the Kmod package to handle zlib and XZ
51 compressed kernel modules.</para>
52 </listitem>
53 </varlistentry>
54
55 </variablelist>
56
57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
58 href="../../final-system/common/kmod.xml"
59 xpointer="xpointer(//*[@os='d'])"/>
60
61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
62 href="../../final-system/common/kmod.xml"
63 xpointer="xpointer(//*[@os='e'])"/>
64
65 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
66 href="../../final-system/common/kmod.xml"
67 xpointer="xpointer(//*[@os='g'])"/>
68
69<screen os="h"><userinput>make install</userinput></screen>
70
71 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
72 href="../../final-system/common/kmod.xml"
73 xpointer="xpointer(//*[@os='i'])"/>
74
75<screen os="j"><userinput>ln -sfv kmod /tools/bin/lsmod
76for tool in depmod insmod modprobe modinfo rmmod; do
77 ln -sv ../bin/kmod /tools/sbin/${tool}
78done</userinput></screen>
79
80 </sect2>
81
82 <sect2 role="content">
83 <title/>
84
85 <para>Details on this package are located in <xref
86 linkend="contents-kmod" role="."/></para>
87
88 </sect2>
89
90</sect1>
Note: See TracBrowser for help on using the repository browser.