Changeset 8c34ffe in clfs-embedded


Ignore:
Timestamp:
Feb 21, 2011, 4:14:29 AM (13 years ago)
Author:
Andrew Bradford <bradfa@…>
Branches:
master
Children:
b0386e9
Parents:
dfff918
Message:

MIPS uClibc config accounts for ABI and MIPS level

Updated uClibc instructions to account for different choices of ABI
selection and MIPS level selection.
Using long if/then/else/if/then. There might be a shorter way
of accomplishing this but it's clear what's going on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/mips/uclibc.xml

    rdfff918 r8c34ffe  
    3737    xpointer="xpointer(//*[@os='c'])"/>
    3838
    39     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    40     href="../common/uclibc.xml"
    41     xpointer="xpointer(//*[@os='d'])"/>
     39    <para os="d">For the MIPS architecture, there are many different combinations
     40    of configurations that can be used when building uClibc based on the choices
     41    made previously for: endianess, ABI, and MIPS level.  To ensure that the
     42    proper configuration is used based on those choices, first copy the configuration
     43    matching the endianess chosen, then update the ABI and MIPS level:</para>
    4244
    43 <screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN}.${CLFS_ABI}.${CLFS_MIPS_LEVEL} .config</userinput></screen>
     45<screen os="e"><userinput>cp -v clfs/config.${CLFS_ARCH}.${CLFS_ENDIAN} .config
     46if [ "${CLFS_ABI}" == "n32" ]; \
     47then sed -i s/CONFIG_MIPS_O32_ABI/CONFIG_MIPS_N32_ABI/g .config; \
     48elif [ "${CLFS_ABI}" == "64" ]; \
     49then sed -i s/CONFIG_MIPS_O32_ABI/CONFIG_MIPS_N64_ABI/g .config; fi; \
     50if [ "${CLFS_MIPS_LEVEL}" == "3" ]; \
     51then sed -i s/CONFIG_MIPS_ISA_1/CONFIG_MIPS_ISA_3/g .config; fi</userinput></screen>
    4452
    4553    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
Note: See TracChangeset for help on using the changeset viewer.