Changeset a9bbc46 in clfs-embedded for BOOK/cross-tools/common
- Timestamp:
- Nov 28, 2010, 7:46:43 AM (14 years ago)
- Branches:
- master
- Children:
- d9bcc87
- Parents:
- 87d09b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/uclibc.xml
r87d09b7 ra9bbc46 35 35 </note> 36 36 37 <para os=" p1">The following patch contains a number of updates to the38 &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> 39 39 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> 41 41 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> 43 44 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> 58 46 59 47 <para os="f">The config is a basic working system, but there are some … … 66 54 <para os="h">Compile the package:</para> 67 55 68 <screen os="i"><userinput>make CROSS=${CLFS_TARGET}- CC="${CLFS_TARGET}-gcc ${BUILD}"</userinput></screen>56 <screen os="i"><userinput>make</userinput></screen> 69 57 70 58 <para os="l">Install the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.