Changeset a9bbc46 in clfs-embedded


Ignore:
Timestamp:
Nov 28, 2010, 7:46:43 AM (12 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
d9bcc87
Parents:
87d09b7
Message:

Updated uClibc to 0.9.31.

Files:
1 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/arm/variables.xml

    r87d09b7 ra9bbc46  
    2525  xpointer="xpointer(//*[@os='c'])"/>
    2626
    27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/arm.*/arm/g')</userinput></screen>
    28 
    29   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    30   href="../x86/variables.xml"
    31   xpointer="xpointer(//*[@os='e'])"/>
    32 
    33 <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/armeb/BIG/' -e 's/arm/LITTLE/')
    34 if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then
    35   export CLFS_NOT_ENDIAN=BIG
    36 else
    37   export CLFS_NOT_ENDIAN=LITTLE
    38 fi</userinput></screen>
     27<screen os="d"><userinput>export CLFS_ARCH=arm
     28export CLFS_ENDIAN=<replaceable>[endianess]</replaceable></userinput></screen>
    3929
    4030  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    5848        <row>
    5949          <entry>Processor</entry>
     50          <entry>Endianess</entry>
    6051          <entry>Target Triplet</entry>
    6152        </row>
     
    6455      <tbody>
    6556        <row>
    66           <entry>Generic arm, little endian</entry>
     57          <entry>Generic arm</entry>
     58          <entry>little</entry>
    6759          <entry>arm-unknown-linux-uclibc</entry>
    6860        </row>
    6961        <row>
    70           <entry>Generic arm, version 5, little endian</entry>
     62          <entry>Generic arm, version 5</entry>
     63          <entry>little</entry>
    7164          <entry>armv5l-unknown-linux-uclibc</entry>
    7265        </row>
    7366        <row>
    74           <entry>Generic arm, version 5, big endian</entry>
     67          <entry>Generic arm, version 5</entry>
     68          <entry>big</entry>
    7569          <entry>armv5b-unknown-linux-uclibc</entry>
    7670        </row>
  • BOOK/cross-tools/common/uclibc.xml

    r87d09b7 ra9bbc46  
    3535    </note>
    3636
    37     <para os="p1">The following patch contains a number of updates to the
    38     &uclibc-version; branch by the uClibc developers:</para>
     37    <para os="b">The following patch contains the default configurations for
     38    the architectures covered in this book:</para>
    3939
    40 <screen os="p2"><userinput>patch -Np1 -i ../&uclibc-branch_update-patch;</userinput></screen>
     40<screen os="c"><userinput>patch -Np1 -i ../&uclibc-configs-patch;</userinput></screen>
    4141
    42     <para os="b">Copy the uClibc config file from where you downloaded it:</para>
     42   <para os="d">Now we will copy the configuration file best matching this
     43   build and use that as the base:</para>
    4344
    44 <screen os="c"><userinput>cp ${CLFS}/sources/uClibc-&uclibc-version;.config .config</userinput></screen>
    45 
    46    <para os="d">We will need to edit the configuration file, to make sure everything gets
    47    compiled and it's compiled to the proper architecture:</para>
    48 
    49 <screen os="e"><userinput>cp .config{,.orig}
    50 sed -e "s@# TARGET_${CLFS_ARCH} is not set@TARGET_${CLFS_ARCH}=y@" \
    51   -e "s@\(^TARGET_ARCH=\).*@\1\"${CLFS_ARCH}\"@" \
    52   -e "s@\(^CROSS_COMPILER_PREFIX=\).*@\1\"${CLFS_TARGET}-\"@" \
    53   -e "s@\(^KERNEL_HEADERS=\).*@\1\"${CLFS}/usr/include\"@" \
    54   -e "s@.*\(^ARCH_${CLFS_NOT_ENDIAN}_ENDIAN\).*@# \1 is not set@g" \
    55   -e "s@.*\(ARCH_${CLFS_ENDIAN}_ENDIAN\).*@\1=y@g" \
    56   -e "s@.*\(ARCH_WANTS_${CLFS_ENDIAN}_ENDIAN\).*@\1=y@g" \
    57   .config.orig > .config</userinput></screen>
     45<screen os="e"><userinput>cp clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config</userinput></screen>
    5846
    5947    <para os="f">The config is a basic working system, but there are some
     
    6654    <para os="h">Compile the package:</para>
    6755
    68 <screen os="i"><userinput>make CROSS=${CLFS_TARGET}- CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>
     56<screen os="i"><userinput>make</userinput></screen>
    6957
    7058    <para os="l">Install the package:</para>
  • BOOK/cross-tools/mips/variables.xml

    r87d09b7 ra9bbc46  
    2525  xpointer="xpointer(//*[@os='c'])"/>
    2626
    27 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/mips64/mips/')</userinput></screen>
    28 
    29   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    30   href="../x86/variables.xml"
    31   xpointer="xpointer(//*[@os='e'])"/>
    32 
    33 <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/LITTLE/' -e 's/mips/BIG/')
    34 if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then
    35   export CLFS_NOT_ENDIAN=BIG
    36 else
    37   export CLFS_NOT_ENDIAN=LITTLE
    38 fi</userinput></screen>
     27<screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/\(mips\)\(64\)\?\(el\)\?-.*/\1\3/')
     28export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/little/' -e 's/mips/big/')</userinput></screen>
    3929
    4030  <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your
     
    5343echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
    5444echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
    55 echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" &gt;&gt; ~/.bashrc
    5645echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    5746
  • BOOK/cross-tools/x86/variables.xml

    r87d09b7 ra9bbc46  
    1515  <para os="a">During the building of the cross-compile tools you will need to
    1616  set a few variables that will be dependent on your particular needs.
    17   You will need to set the target triplet for the target
    18   architecture. You can do this by running the same command as above, just
    19   running it on the target machine. If you can't run the command on the
    20   target machine, you can use the table at the bottom of this page. Set
     17  You will need to set the target triplet for the target architecture. As well
     18  as the CPUs type and endianess. If you do not know what triplet you want,
     19  you can use the table at the bottom of this page as a reference. Set
    2120  the command using the method listed below:</para>
    2221
    2322<screen os="b"><userinput>export CLFS_HOST=$(echo ${MACHTYPE} | sed "s/-[^-]*/-cross/")
    24 export CLFS_TARGET="{target triplet}"</userinput></screen>
     23export CLFS_TARGET=<replaceable>[target triplet]</replaceable></userinput></screen>
    2524
    26   <para os="c">Now we will setup out default architecture needed we need to build:</para>
     25  <para os="c">Now we will set the architecture and endianess of the CPU based
     26  on the target triplet provided above:</para>
    2727
    28 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')</userinput></screen>
    29 
    30   <para os="e">Now we will setup out default endian needed we need to build and set the one we don't need:</para>
    31 
    32 <screen os="f"><userinput>export CLFS_ENDIAN=LITTLE
    33 export CLFS_NOT_ENDIAN=BIG</userinput></screen>
     28<screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')
     29export CLFS_ENDIAN=little</userinput></screen>
    3430
    3531  <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in
     
    3935echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc
    4036echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
    41 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
    42 echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     37echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    4338
    4439  <table os="i">
  • BOOK/general.ent

    r87d09b7 ra9bbc46  
    33<!ENTITY month "11"> <!-- Use two digits -->
    44<!ENTITY month_name "November">
    5 <!ENTITY day "21"> <!-- Use two digits -->
     5<!ENTITY day "28"> <!-- Use two digits -->
    66<!ENTITY year "2010"> <!-- Use four digits -->
    77
  • BOOK/introduction/common/changelog.xml

    r87d09b7 ra9bbc46  
    3636    </listitem>
    3737-->
     38
     39    <listitem>
     40      <para>November 28, 2010</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jciccone] - Updated uClibc to 0.9.31.</para>
     44        </listitem>
     45      </itemizedlist>
     46    </listitem>
    3847
    3948    <listitem>
  • BOOK/materials/common/packages.xml

    r87d09b7 ra9bbc46  
    124124
    125125    <varlistentry>
    126       <term>uClibc Config File (&uclibc-config-version;) - <token>&uclibc-config-size;</token>:</term>
    127       <listitem>
    128         <para>Home page: <ulink url="&uclibc-config-home;"/></para>
    129         <para>Download: <ulink url="&uclibc-config-url;"/></para>
    130         <para>MD5 sum: <literal>&uclibc-config-md5;</literal></para>
    131       </listitem>
    132     </varlistentry>
    133 
    134     <varlistentry>
    135126      <term>Zlib (&zlib-version;) - <token>&zlib-size;</token>:</term>
    136127      <listitem>
  • BOOK/materials/common/patches.xml

    r87d09b7 ra9bbc46  
    2929
    3030    <varlistentry>
    31       <term>uClibc Branch Update Patch - <token>&uclibc-branch_update-patch-size;</token>:</term>
     31      <term>uClibc Configs Patch - <token>&uclibc-configs-patch-size;</token>:</term>
    3232      <listitem>
    3333        <para>Download: <ulink
    34         url="&patches-root;&uclibc-branch_update-patch;"/></para>
    35         <para>MD5 sum: <literal>&uclibc-branch_update-patch-md5;</literal></para>
     34        url="&patches-root;&uclibc-configs-patch;"/></para>
     35        <para>MD5 sum: <literal>&uclibc-configs-patch-md5;</literal></para>
    3636      </listitem>
    3737    </varlistentry>
  • BOOK/packages.ent

    r87d09b7 ra9bbc46  
    7474<!ENTITY mpfr-home "http://www.mpfr.org/">
    7575
    76 <!ENTITY uclibc-version "0.9.30.1">
    77 <!ENTITY uclibc-size "2,231 KB">
     76<!ENTITY uclibc-version "0.9.31">
     77<!ENTITY uclibc-size "2,244 KB">
    7878<!ENTITY uclibc-url "http://www.uclibc.org/downloads/uClibc-&uclibc-version;.tar.bz2">
    79 <!ENTITY uclibc-md5 "1a4b84e5536ad8170563ffa88c34679c">
     79<!ENTITY uclibc-md5 "52fb8a494758630c8d3ddd7f1e0daafd">
    8080<!ENTITY uclibc-home "http://uclibc.org/">
    81 
    82 <!ENTITY uclibc-config-version "&uclibc-version;">
    83 <!ENTITY uclibc-config-size "5 KB">
    84 <!ENTITY uclibc-config-url "&svn-clfs-config;uClibc-&uclibc-config-version;.config">
    85 <!ENTITY uclibc-config-md5 "ed62fb231034de4f6edea2f6da488613">
    86 <!ENTITY uclibc-config-home " ">
    8781
    8882<!ENTITY zlib-version "1.2.3">
  • BOOK/patches.ent

    r87d09b7 ra9bbc46  
    99<!ENTITY busybox-branch_update-patch-size "15 KB">
    1010
    11 <!ENTITY uclibc-branch_update-patch "uClibc-&uclibc-version;-branch_update-1.patch">
    12 <!ENTITY uclibc-branch_update-patch-md5 "7f1ca40d176b74b865977fb085a5eb7f">
    13 <!ENTITY uclibc-branch_update-patch-size "36 KB">
     11<!ENTITY uclibc-configs-patch "uClibc-&uclibc-version;-configs-1.patch">
     12<!ENTITY uclibc-configs-patch-md5 "386e96413ff440f8c4c088be8fa3827e">
     13<!ENTITY uclibc-configs-patch-size "52 KB">
    1414
    1515<!-- Beyond patches -->
Note: See TracChangeset for help on using the changeset viewer.