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">By default uClibc symlinks all its headers from the source, we
|
---|
26 | will change this behavious with the following sed:</para>
|
---|
27 |
|
---|
28 | <screen os="b"><userinput>cp Makefile Makefile.orig
|
---|
29 | sed -e 's/$(LN) -fs/cp/g' Makefile.orig > Makefile
|
---|
30 | for file in `find libc/sysdeps/linux -name Makefile`; do
|
---|
31 | cp $file $file.orig
|
---|
32 | sed -e 's/$(LN) -fs/cp/g' -e 's@../libc/@$(TOPDIR)libc/@g' $file.orig > $file
|
---|
33 | done</userinput></screen>
|
---|
34 |
|
---|
35 | <para os="c">Now we will ask uClibc to create a default configuration:</para>
|
---|
36 |
|
---|
37 | <screen os="d"><userinput>make defconfig</userinput></screen>
|
---|
38 |
|
---|
39 | <para os="e">Create the Headers:</para>
|
---|
40 |
|
---|
41 | <screen os="f"><userinput>make KERNEL_SOURCE=${CLFS}/usr TARGET_ARCH=i386 headers</userinput></screen>
|
---|
42 |
|
---|
43 | <para os="g">We will remove the files that were copied over from our Linux Headers, these
|
---|
44 | files were copied into the source directory of uClibc:</para>
|
---|
45 |
|
---|
46 | <screen os="h"><userinput>rm include/{asm,asm-generic,linux}</userinput></screen>
|
---|
47 |
|
---|
48 | <para os="i">Install the Headers:</para>
|
---|
49 |
|
---|
50 | <screen os="j"><userinput>cp -a include/* ${CLFS}/usr/include</userinput></screen>
|
---|
51 |
|
---|
52 | </sect2>
|
---|
53 |
|
---|
54 | <sect2 role="content" id="contents-uclibc-headers">
|
---|
55 | <title/>
|
---|
56 |
|
---|
57 | <para>Details on this package are located in <xref
|
---|
58 | linkend="contents-uclibc" role="."/></para>
|
---|
59 |
|
---|
60 | </sect2>
|
---|
61 |
|
---|
62 | </sect1>
|
---|