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

Last change on this file since d5cf32ea was e90b5e5, checked in by Chris Staub <chris@…>, 11 years ago

Prevent kmod from trying to locate the bash-completion package on the host

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