Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/kmod.xml

    rbeaca0e redd83dc  
    9494  </sect2>
    9595
     96  <!-- - - - - - - - - - -->
     97  <!-- Multilib - 32bit  -->
     98  <!-- - - - - - - - - - -->
     99 
     100  <sect2 arch="ml_32,ml_all" role="installation">
     101    <title>Installation of Kmod - 32bit</title>
     102
     103    <para>Clean previous build but keep man pages as they cannot
     104    be recreated since xsltproc isn't installed yet:</para>
     105
     106<screen><userinput remap="pre">sed -e "s/^CLEANFILES =.*/CLEANFILES =/" -i man/Makefile
     107make clean</userinput></screen>
     108
     109    <para>Prepare Kmod for compilation:</para>
     110
     111<screen><userinput remap="configure">CC="gcc -m32" ./configure \
     112    --prefix=/usr                 \
     113    --bindir=/bin                 \
     114    --libdir=&usr-lib-m32;          \
     115    --sysconfdir=/etc             \
     116    --with-xz                     \
     117    --with-zlib                   \
     118    --host=i686-pc-linux-gnu      \
     119    --with-rootlibdir=&usr-lib-m32;</userinput></screen>
     120
     121    <para>Compile the package:</para>
     122
     123<screen><userinput remap="make">make</userinput></screen>
     124
     125    <para>Install the package:</para>
     126
     127<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     128cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
     129rm -rf DESTDIR</userinput></screen>
     130
     131  </sect2><!-- m32 -->
     132
     133  <!-- - - - - - - - - - -->
     134  <!-- Multilib - x32bit -->
     135  <!-- - - - - - - - - - -->
     136 
     137  <sect2 arch="ml_x32,ml_all" role="installation">
     138    <title>Installation of Kmod - x32bit</title>
     139
     140    <para>Clean previous build but keep man pages as they cannot
     141    be recreated since xsltproc isn't installed yet:</para>
     142
     143<screen><userinput remap="pre">sed -e "s/^CLEANFILES =.*/CLEANFILES =/" -i man/Makefile
     144make clean</userinput></screen>
     145
     146    <para>Prepare Kmod for compilation:</para>
     147
     148<screen><userinput remap="configure">CC="gcc -mx32" ./configure \
     149    --prefix=/usr                 \
     150    --bindir=/bin                 \
     151    --libdir=&usr-lib-mx32;          \
     152    --sysconfdir=/etc             \
     153    --with-xz                     \
     154    --with-zlib                   \
     155    --host=x86_64-pc-linux-gnux32 \
     156    --with-rootlibdir=&usr-lib-mx32;</userinput></screen>
     157
     158    <para>Compile the package:</para>
     159
     160<screen><userinput remap="make">make</userinput></screen>
     161
     162    <para>Install the package:</para>
     163
     164<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     165cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
     166rm -rf DESTDIR</userinput></screen>
     167
     168  </sect2><!-- mx32 -->
     169
    96170  <sect2 id="contents-kmod" role="content">
    97171    <title>Contents of Kmod</title>
Note: See TracChangeset for help on using the changeset viewer.