source: clfs-embedded/BOOK/cross-tools/x86/uclibc-headers.xml @ e2d2a2d

Last change on this file since e2d2a2d was e2d2a2d, checked in by Jim Gifford <clfs@…>, 17 years ago

Added some notes to the uClibc build. Added the target set to uClibc headers.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-uclibc-headers" role="wrap">
9  <?dbhtml filename="uclibc-headers.html"?>
10
11  <title>uClibc-&uclibc-version; Headers</title>
12
13  <indexterm zone="ch-cross-tools-uclibc-headers">
14    <primary sortas="a-uClibc">uClibc</primary>
15    <secondary>cross tools, headers</secondary>
16  </indexterm>
17
18  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19  href="uclibc.xml"
20  xpointer="xpointer(//*[@role='package'])"/>
21
22  <sect2 role="installation">
23    <title>Installation of uClibc Headers</title>
24
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
31sed -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
35    will change this behavious with the following sed:</para>
36       
37<screen os="d"><userinput>cp Makefile Makefile.orig
38sed -e 's/$(LN) -fs/cp/g' Makefile.orig > Makefile
39for file in `find libc/sysdeps/linux -name Makefile`; do
40        cp $file $file.orig
41        sed -e 's/$(LN) -fs/cp/g' -e 's@../libc/@$(TOPDIR)libc/@g' $file.orig > $file
42done</userinput></screen>
43
44    <para os="e">Now we will ask uClibc to create a default configuration:</para>
45
46<screen os="f"><userinput>make defconfig</userinput></screen>
47
48   <para os="g">Create the Headers:</para>
49
50<screen os="h"><userinput>make KERNEL_SOURCE=${CLFS}/usr TARGET_ARCH=i386 headers</userinput></screen>
51
52   <para os="i">We will remove the files that were copied over from our Linux Headers, these
53   files were copied into the source directory of uClibc:</para>
54
55<screen os="j"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
56
57   <para os="k">Install the Headers:</para>
58
59<screen os="l"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>
60
61  </sect2>
62
63  <sect2 role="content" id="contents-uclibc-headers">
64    <title/>
65
66    <para>Details on this package are located in <xref
67    linkend="contents-uclibc" role="."/></para>
68
69  </sect2>
70
71</sect1>
Note: See TracBrowser for help on using the repository browser.