- Timestamp:
- Nov 9, 2006, 5:17:42 AM (18 years ago)
- Branches:
- master
- Children:
- e666df1
- Parents:
- a58af15
- Location:
- BOOK/cross-tools/x86
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/x86/uclibc-headers.xml
ra58af15 re2d2a2d 23 23 <title>Installation of uClibc Headers</title> 24 24 25 <para os="a">By default uClibc symlinks all its headers from the source, we 25 <para os="a">Since we are cross-compiling, we need to make sure when we 26 configuration for our architecture we get the correct information. The 27 following sed makes sure we are using the proper settings for our 28 architecture: (This is a place holder for the other architectures</para> 29 30 <screen os="b"><userinput>cp extra/Configs/Config.in extra/Configs/Config.in.orig 31 sed -e "s:default TARGET_i386:default TARGET_i386:" \ 32 extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen> 33 34 <para os="c">By default uClibc symlinks all its headers from the source, we 26 35 will change this behavious with the following sed:</para> 27 36 28 <screen os=" b"><userinput>cp Makefile Makefile.orig37 <screen os="d"><userinput>cp Makefile Makefile.orig 29 38 sed -e 's/$(LN) -fs/cp/g' Makefile.orig > Makefile 30 39 for file in `find libc/sysdeps/linux -name Makefile`; do … … 33 42 done</userinput></screen> 34 43 35 <para os=" c">Now we will ask uClibc to create a default configuration:</para>44 <para os="e">Now we will ask uClibc to create a default configuration:</para> 36 45 37 <screen os=" d"><userinput>make defconfig</userinput></screen>46 <screen os="f"><userinput>make defconfig</userinput></screen> 38 47 39 <para os=" e">Create the Headers:</para>48 <para os="g">Create the Headers:</para> 40 49 41 <screen os=" f"><userinput>make KERNEL_SOURCE=${CLFS}/usr TARGET_ARCH=i386 headers</userinput></screen>50 <screen os="h"><userinput>make KERNEL_SOURCE=${CLFS}/usr TARGET_ARCH=i386 headers</userinput></screen> 42 51 43 <para os=" g">We will remove the files that were copied over from our Linux Headers, these52 <para os="i">We will remove the files that were copied over from our Linux Headers, these 44 53 files were copied into the source directory of uClibc:</para> 45 54 46 <screen os=" h"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>55 <screen os="j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen> 47 56 48 <para os=" i">Install the Headers:</para>57 <para os="k">Install the Headers:</para> 49 58 50 <screen os=" j"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>59 <screen os="l"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen> 51 60 52 61 </sect2> -
BOOK/cross-tools/x86/uclibc.xml
ra58af15 re2d2a2d 38 38 extra/Configs/Config.in.orig > extra/Configs/Config.in</userinput></screen> 39 39 40 <para os="c">Create default configuration:</para> 40 <note os="c"> 41 <para>Below we are just telling uClibc to use the default configuration of 42 uClibc. For those for more adventureous, you can use make menuconfig, and 43 do a more custom build of your uClibc.</para> 44 </note> 41 45 42 <screen os="d"><userinput>make defconfig</userinput></screen>46 <para os="d">Create default configuration:</para> 43 47 44 <para os="e">We will need to edit the configuration file, to make sure everything gets 48 <screen os="e"><userinput>make defconfig</userinput></screen> 49 50 <para os="f">We will need to edit the configuration file, to make sure everything gets 45 51 compiled and put into it's proper locations:</para> 46 52 47 <screen os=" f"><userinput>cp .config .config.orig53 <screen os="g"><userinput>cp .config .config.orig 48 54 sed -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CLFS_TARGET}-\":" \ 49 55 -e "/^KERNEL_SOURCE/s:=.*:=\"${CLFS}/usr\":" \ … … 53 59 .config.orig > .config</userinput></screen> 54 60 55 <para os=" g">Compile the package:</para>61 <para os="h">Compile the package:</para> 56 62 57 <screen os=" h"><userinput>make TARGET_ARCH=i386</userinput></screen>63 <screen os="i"><userinput>make TARGET_ARCH=i386</userinput></screen> 58 64 59 <para os=" i">We will remove the files that were copied over from our Linux Headers, these65 <para os="j">We will remove the files that were copied over from our Linux Headers, these 60 66 files were copied into the source directory of uClibc:</para> 61 67 62 <screen os=" j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>68 <screen os="k"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen> 63 69 64 <para os=" k">Install the package:</para>70 <para os="l">Install the package:</para> 65 71 66 <screen os=" l"><userinput>make PREFIX=${CLFS} install</userinput></screen>72 <screen os="m"><userinput>make PREFIX=${CLFS} install</userinput></screen> 67 73 68 74 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.