Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/kmod.xml

    r9282602 r7152faa  
    1 <?xml version="1.0" encoding="ISO-8859-1"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    33  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     
    9898
    9999  </sect2>
    100 
    101   <!-- - - - - - - - - - -->
    102   <!-- Multilib - 32bit  -->
    103   <!-- - - - - - - - - - -->
    104  
    105   <sect2 arch="ml_32,ml_all" role="installation">
    106     <title>Installation of Kmod - 32bit</title>
    107 
    108     <para>Clean previous build but keep man pages as they cannot
    109     be recreated since xsltproc isn't installed yet:</para>
    110 
    111 <screen><userinput remap="pre">sed -e "s/^CLEANFILES =.*/CLEANFILES =/" -i man/Makefile
    112 make clean</userinput></screen>
    113 
    114     <para>Prepare Kmod for compilation:</para>
    115 
    116 <screen><userinput remap="configure">CC="gcc -m32" ./configure \
    117     --host=i686-pc-linux-gnu      \
    118     --prefix=/usr                 \
    119     --libdir=/usr/lib32           \
    120     --sysconfdir=/etc             \
    121     --with-openssl                \
    122     --with-xz                     \
    123     --with-zstd                   \
    124     --with-zlib                   \
    125     --with-rootlibdir=/usr/lib32</userinput></screen>
    126 
    127     <para>Compile the package:</para>
    128 
    129 <screen><userinput remap="make">make</userinput></screen>
    130 
    131     <para>Install the package:</para>
    132 
    133 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
    134 cp -Rv DESTDIR/usr/lib32/* /usr/lib32
    135 rm -rf DESTDIR</userinput></screen>
    136 
    137   </sect2><!-- m32 -->
    138 
    139   <!-- - - - - - - - - - -->
    140   <!-- Multilib - x32bit -->
    141   <!-- - - - - - - - - - -->
    142  
    143   <sect2 arch="ml_x32,ml_all" role="installation">
    144     <title>Installation of Kmod - x32bit</title>
    145 
    146     <para>Clean previous build but keep man pages as they cannot
    147     be recreated since xsltproc isn't installed yet:</para>
    148 
    149 <screen><userinput remap="pre">sed -e "s/^CLEANFILES =.*/CLEANFILES =/" -i man/Makefile
    150 make clean</userinput></screen>
    151 
    152     <para>Prepare Kmod for compilation:</para>
    153 
    154 <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
    155     --host=x86_64-pc-linux-gnux32 \
    156     --prefix=/usr                 \
    157     --libdir=/usr/libx32          \
    158     --sysconfdir=/etc             \
    159     --with-openssl                \
    160     --with-xz                     \
    161     --with-zstd                   \
    162     --with-zlib                   \
    163     --with-rootlibdir=/usr/libx32</userinput></screen>
    164 
    165     <para>Compile the package:</para>
    166 
    167 <screen><userinput remap="make">make</userinput></screen>
    168 
    169     <para>Install the package:</para>
    170 
    171 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
    172 cp -Rv DESTDIR/usr/libx32/* /usr/libx32
    173 rm -rf DESTDIR</userinput></screen>
    174 
    175   </sect2><!-- mx32 -->
    176100
    177101  <sect2 id="contents-kmod" role="content">
Note: See TracChangeset for help on using the changeset viewer.