Changeset 75a0379 in clfs-embedded for BOOK/cross-tools/common


Ignore:
Timestamp:
Oct 15, 2013, 1:00:05 PM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
c01e552
Parents:
d6d3617
git-author:
Andrew Bradford <andrew@…> (10/14/13 13:21:45)
git-committer:
Andrew Bradford <andrew@…> (10/15/13 13:00:05)
Message:

Convert from uClibc to musl-libc

Does not include musl required patches for gcc or binutils but the book
builds and uClibc has been removed.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/common/libc.xml

    rd6d3617 r75a0379  
    66]>
    77
    8 <!-- Common uClibc -->
     8<sect1 id="ch-cross-tools-libc" role="wrap">
     9  <?dbhtml filename="libc.html"?>
    910
    10 <sect1 id="ch-cross-tools-uclibc" role="wrap">
    11   <?dbhtml filename="uclibc.html"?>
     11  <title>musl-libc-&musl-libc-version;</title>
    1212
    13   <title>uClibc-&uclibc-version;</title>
    14 
    15   <indexterm zone="ch-cross-tools-uclibc">
    16     <primary sortas="a-uClibc">uClibc</primary>
     13  <indexterm zone="ch-cross-tools-libc">
     14    <primary sortas="a-libc">musl-libc</primary>
    1715    <secondary>cross tools</secondary>
    1816  </indexterm>
     
    2119    <title/>
    2220
    23     <para>The uClibc package contains the main C library. This library provides
     21    <para>The musl-libc package contains the main C library. This library provides
    2422    the basic routines for allocating memory, searching directories, opening and
    2523    closing files, reading and writing files, string handling, pattern matching,
     
    2927
    3028  <sect2 role="installation">
    31     <title>Installation of uClibc</title>
    32 
    33     <note os="a">
    34       <para>Below we are just telling uClibc to use its default configuration.
    35       For those who are more adventurous, you can use make menuconfig and
    36       do a more custom build for your uClibc installation.</para>
    37     </note>
    38 
    39     <para os="b">The following patch contains the default configurations for
    40     the architectures covered in this book:</para>
    41 
    42 <screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen>
    43 
    44    <para os="d">Now we will copy the configuration file best matching this
    45    build and use that as the base:</para>
    46 
    47 <screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen>
    48 
    49     <para os="f">The config is a basic working system, but there are some
    50     options that are architecture specifc that need to be set. The following
    51     command will only bring up items that need a value that we did not
    52     specify in our generic config file patch:</para>
    53 
    54 <screen os="g"><userinput>make oldconfig</userinput></screen>
     29    <title>Installation of musl-libc</title>
    5530
    5631    <para os="h">Compile the package:</para>
    5732
    58 <screen os="i"><userinput>make</userinput></screen>
     33<screen os="i"><userinput>CC=${CLFS_TARGET}-gcc make \
     34  --enable-debug</userinput></screen>
    5935
    6036    <para os="l">Install the package:</para>
     
    6440  </sect2>
    6541
    66   <sect2 id="contents-uclibc" role="content">
    67     <title>Contents of uClibc</title>
     42  <sect2 id="contents-musl-libc" role="content">
     43    <title>Contents of musl-libc</title>
    6844
    6945    <segmentedlist>
     
    7248      <segtitle>Installed Headers</segtitle>
    7349      <seglistitem>
    74         <seg>ld-uClibc.so.0</seg>
     50        <seg>ld-musl-libc.so.0</seg>
    7551        <seg> libc.so.0, libcrypt.so.0, libdl.so.0, libm.so.0, libpthread.so.0,
    7652        librt.so.0</seg>
     
    8460      <?dbhtml list-presentation="table"?>
    8561
    86       <varlistentry id="ld-uClibc">
    87         <term><command>ld-uClibc</command></term>
     62      <varlistentry id="ld-musl-libc">
     63        <term><command>ld-musl-libc</command></term>
    8864        <listitem>
    89           <para>The uClibc dynamic linker / loader</para>
    90           <indexterm zone="ch-cross-tools-uclibc ld-uClibc">
    91             <primary sortas="b-ld-uClibc">ld-uClibc</primary>
     65          <para>The musl-libc dynamic linker / loader</para>
     66          <indexterm zone="ch-cross-tools-libc ld-musl-libc">
     67            <primary sortas="b-ld-musl-libc">ld-musl-libc</primary>
    9268          </indexterm>
    9369        </listitem>
     
    9874        <listitem>
    9975          <para>The C library</para>
    100           <indexterm zone="ch-cross-tools-uclibc libc">
     76          <indexterm zone="ch-cross-tools-libc libc">
    10177            <primary sortas="c-libc">libc</primary>
    10278          </indexterm>
     
    10884        <listitem>
    10985          <para>The cryptographic library</para>
    110           <indexterm zone="ch-cross-tools-uclibc libcrypt">
     86          <indexterm zone="ch-cross-tools-libc libcrypt">
    11187            <primary sortas="c-libcrypt">libcrypt</primary>
    11288          </indexterm>
     
    11793        <term><filename class="libraryfile">libdl</filename></term>
    11894        <listitem>
    119           <para>The uClibc dynamic linker / loader library</para>
    120           <indexterm zone="ch-cross-tools-uclibc libdl">
     95          <para>The musl-libc dynamic linker / loader library</para>
     96          <indexterm zone="ch-cross-tools-libc libdl">
    12197            <primary sortas="c-libdl">libdl</primary>
    12298          </indexterm>
     
    128104        <listitem>
    129105          <para>The math library</para>
    130           <indexterm zone="ch-cross-tools-uclibc libm">
     106          <indexterm zone="ch-cross-tools-libc libm">
    131107            <primary sortas="c-libm">libm</primary>
    132108          </indexterm>
     
    138114        <listitem>
    139115          <para>The POSIX thread library</para>
    140           <indexterm zone="ch-cross-tools-uclibc libpthread">
     116          <indexterm zone="ch-cross-tools-libc libpthread">
    141117            <primary sortas="c-libpthread">libpthread</primary>
    142118          </indexterm>
     
    148124        <listitem>
    149125          <para>The clock and timer library</para>
    150           <indexterm zone="ch-cross-tools-uclibc librt">
     126          <indexterm zone="ch-cross-tools-libc librt">
    151127            <primary sortas="c-librt">librt</primary>
    152128          </indexterm>
Note: See TracChangeset for help on using the changeset viewer.