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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7541510 was d2ecc65, checked in by Chris Staub <chris@…>, 11 years ago

Reorganized boot section

  • 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">Tell Kmod to use <filename class="directory">/tools/lib/modules</filename>:</para>
26
27<screen os="s2"><userinput>cp -v libkmod/libkmod.c{,.orig}
28sed '/dirname_default_prefix /s@/lib/modules@/tools&amp;@' \
29 libkmod/libkmod.c.orig &gt; libkmod/libkmod.c</userinput></screen>
30
31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
32 href="../../final-system/common/kmod.xml"
33 xpointer="xpointer(//*[@os='a'])"/>
34
35<screen os="b"><userinput>liblzma_CFLAGS="-I/tools/include" liblzma_LIBS="-L/tools/lib -llzma" \
36zlib_CFLAGS="-I/tools/include" zlib_LIBS="-L/tools/lib -lz" \
37./configure --prefix=/tools \
38 --build=${CLFS_HOST} --host=${CLFS_TARGET} --with-xz --with-zlib</userinput></screen>
39
40 <variablelist os="c">
41 <title>The meaning of the new configure options:</title>
42
43 <varlistentry>
44 <term><parameter>--with-zlib --with-xz</parameter></term>
45 <listitem>
46 <para>These allow the Kmod package to handle zlib and XZ
47 compressed kernel modules.</para>
48 </listitem>
49 </varlistentry>
50
51 </variablelist>
52
53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
54 href="../../final-system/common/kmod.xml"
55 xpointer="xpointer(//*[@os='d'])"/>
56
57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
58 href="../../final-system/common/kmod.xml"
59 xpointer="xpointer(//*[@os='e'])"/>
60
61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
62 href="../../final-system/common/kmod.xml"
63 xpointer="xpointer(//*[@os='g'])"/>
64
65<screen os="h"><userinput>make install</userinput></screen>
66
67 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
68 href="../../final-system/common/kmod.xml"
69 xpointer="xpointer(//*[@os='i'])"/>
70
71<screen os="j"><userinput>ln -sfv kmod /tools/bin/lsmod
72for tool in depmod insmod modprobe modinfo rmmod; do
73 ln -sv ../bin/kmod /tools/sbin/${tool}
74done</userinput></screen>
75
76 </sect2>
77
78 <sect2 role="content">
79 <title/>
80
81 <para>Details on this package are located in <xref
82 linkend="contents-kmod" role="."/></para>
83
84 </sect2>
85
86</sect1>
Note: See TracBrowser for help on using the repository browser.