Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/kmod.xml

    re90b5e5 re2e6aae  
    2323    <title>Installation of Kmod</title>
    2424
    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}
    28 sed '/dirname_default_prefix /s@/lib/modules@/tools&amp;@' \
    29     libkmod/libkmod.c.orig &gt; libkmod/libkmod.c</userinput></screen>
    30 
    3125    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    3226    href="../../final-system/common/kmod.xml"
    3327    xpointer="xpointer(//*[@os='a'])"/>
    3428
    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 \
    39     --build=${CLFS_HOST} --host=${CLFS_TARGET} --with-xz --with-zlib</userinput></screen>
    40 
    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>
     29<screen os="b"><userinput>liblzma_CFLAGS="-I/tools/include" liblzma_LIBS="-L/tools/lib -llzma" \
     30zlib_CFLAGS="-I/tools/include" zlib_LIBS="-L/tools/lib -lz" \
     31./configure --prefix=/tools --bindir=/bin \
     32    --build=${CLFS_HOST} --host=${CLFS_TARGET} --with-xz --with-zlib \
     33    --disable-manpages</userinput></screen>
    5334
    5435    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    6445    xpointer="xpointer(//*[@os='g'])"/>
    6546
    66 <screen os="h"><userinput>make install</userinput></screen>
     47<screen os="k"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    6748
    68     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    69     href="../../final-system/common/kmod.xml"
    70     xpointer="xpointer(//*[@os='i'])"/>
     49<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     50href="../../final-system/common/kmod.xml"
     51xpointer="xpointer(//*[@os='i'])"/>
    7152
    72 <screen os="j"><userinput>ln -sfv kmod /tools/bin/lsmod
    73 for tool in depmod insmod modprobe modinfo rmmod; do
    74     ln -sv ../bin/kmod /tools/sbin/${tool}
    75 done</userinput></screen>
     53<screen os="j"><userinput>ln -sv kmod ${CLFS}/bin/lsmod
     54ln -sv ../bin/kmod ${CLFS}/sbin/depmod
     55ln -sv ../bin/kmod ${CLFS}/sbin/insmod
     56ln -sv ../bin/kmod ${CLFS}/sbin/modprobe
     57ln -sv ../bin/kmod ${CLFS}/sbin/modinfo
     58ln -sv ../bin/kmod ${CLFS}/sbin/rmmod</userinput></screen>
    7659
    7760  </sect2>
Note: See TracChangeset for help on using the changeset viewer.