r5263 - in branches/cross-lfs/BOOK: cross-tools introduction

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 8 18:00:31 PDT 2005


Author: jhuntwork
Date: 2005-05-08 19:00:31 -0600 (Sun, 08 May 2005)
New Revision: 5263

Modified:
   branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-sparc64.xml
   branches/cross-lfs/BOOK/introduction/changelog.xml
Log:
Edited sparc64 specific instructions for linux-libc-headers in cross-tools for multilib.
This may have to be re-thought, the commands are long and awkward.


Modified: branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-sparc64.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-sparc64.xml	2005-05-08 23:39:52 UTC (rev 5262)
+++ branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-sparc64.xml	2005-05-09 01:00:31 UTC (rev 5263)
@@ -22,8 +22,46 @@
   href="linux-libc-headers.xml"
   xpointer="xpointer(/sect1/sect2[@role='installation']/para[1])"/>
 
-<screen><userinput>install -d /tools/include
-cp -R include/asm-sparc64 /tools/include/asm
+<screen><userinput>install -d /tools/include/asm
+cp -R include/asm-sparc64 /tools/include/
+cp -R include/asm-sparc /tools/include/
+startdir=`pwd`
+for arch in sparc64 sparc ; do cd /tools/include/asm-${arch}; hdrs=`ls *.h`; \
+HDRS=`echo ${HDRS} ${hdrs} | sort | uniq`; done
+cd $startdir
+for hdr in ${HDRS}; do name=`basename ${hdr} | tr [a-z]. [A-Z]_` \
+cat > /tools/include/asm/${hdr} << EOF
+#ifndef __STUB__${name}__
+#define __STUB__${name}__
+EOF
+if [ -f /tools/include/asm-sparc64/${hdr} ]; then
+if [ -f /tools/include/asm-sparc/${hdr} ]; then
+cat >> /tools/include/asm/${hdr} << EOF
+#ifdef __arch64__
+#include <asm-sparc64/${hdr}>
+#else
+#include <asm-sparc/${hdr}>
+#endif
+EOF
+else
+cat >> /tools/include/asm/${hdr} << EOF
+#ifdef __arch64__
+#include <asm-sparc64/${hdr}>
+#endif
+EOF
+fi
+else
+cat >> /tools/include/asm/${hdr} << EOF
+#ifndef __arch64__
+#include <asm-sparc/${hdr}>
+#endif
+EOF
+fi
+cat >> /tools/include/asm/${hdr} << EOF
+#endif /* __STUB__${name}__ */
+EOF
+echo " - /tools/include/asm/${hdr} created"
+done
 cp -R include/linux /tools/include</userinput></screen>
 
 </sect2>

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-08 23:39:52 UTC (rev 5262)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-09 01:00:31 UTC (rev 5263)
@@ -115,6 +115,8 @@
 <listitem><para>Added Sparc64 specific instructions to glibc-startfiles in cross-tools (64-bit)</para></listitem>
 <listitem><para>Added Sparc64 specific instructions to gcc-shared in cross-tools</para></listitem>
 <listitem><para>Added Sparc64 specific instructions to glibc in cross-tools(32-bit)</para></listitem>
+<listitem><para>Edited sparc64 specific instructions for linux-libc-headers in cross-tools for multilib.
+This may have to be re-thought, the commands are long and awkward.</para></listitem>
 </itemizedlist>
 </listitem>
 </itemizedlist>




More information about the lfs-book mailing list