r2169 - in profiles/CLFS/trunk: . alpha alpha/cross-tools config mips mips/cross-tools mips64 mips64/cross-tools mips64-64 mips64-64/cross-tools ppc ppc/cross-tools prep sparc sparc/cross-tools sparc64 sparc64/cross-tools sparc64-64 sparc64-64/cross-tools x86 x86/cross-tools x86_64 x86_64/cross-tools x86_64-64 x86_64-64/cross-tools

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Fri Nov 11 18:51:47 PST 2005


Author: thomasp
Date: 2005-11-11 19:51:46 -0700 (Fri, 11 Nov 2005)
New Revision: 2169

Added:
   profiles/CLFS/trunk/alpha/LFS.xml
   profiles/CLFS/trunk/checkit.sh
   profiles/CLFS/trunk/mips/LFS.xml
   profiles/CLFS/trunk/mips64-64/LFS.xml
   profiles/CLFS/trunk/mips64/LFS.xml
   profiles/CLFS/trunk/ppc/LFS.xml
   profiles/CLFS/trunk/prep/
   profiles/CLFS/trunk/prep/addinguser.xml
   profiles/CLFS/trunk/prep/creatingcrosstoolsdir.xml
   profiles/CLFS/trunk/prep/creatingtoolsdir.xml
   profiles/CLFS/trunk/prep/settingenvironment.xml
   profiles/CLFS/trunk/runit.sh
   profiles/CLFS/trunk/sparc/LFS.xml
   profiles/CLFS/trunk/sparc64-64/LFS.xml
   profiles/CLFS/trunk/sparc64/LFS.xml
   profiles/CLFS/trunk/x86/LFS.xml
   profiles/CLFS/trunk/x86_64-64/LFS.xml
   profiles/CLFS/trunk/x86_64/LFS.xml
Modified:
   profiles/CLFS/trunk/
   profiles/CLFS/trunk/alpha/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/config/general.ent
   profiles/CLFS/trunk/mips/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/mips64-64/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/mips64/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/ppc/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/sparc/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/sparc64-64/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/sparc64/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/x86/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/x86_64-64/cross-tools/linux-libc-headers.xml
   profiles/CLFS/trunk/x86_64/cross-tools/linux-libc-headers.xml
Log:
* Added checkit and runit scripts
* Fixed mismatched tags in linux-libc-headers files
* Added base LFS.xml files




Property changes on: profiles/CLFS/trunk
___________________________________________________________________
Name: svn:externals
   + DTD svn://svn.linuxfromscratch.org/ALFS/DTD/branches/3.1


Added: profiles/CLFS/trunk/alpha/LFS.xml
===================================================================
--- profiles/CLFS/trunk/alpha/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/alpha/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/alpha/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/alpha/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/alpha/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/checkit.sh
===================================================================
--- profiles/CLFS/trunk/checkit.sh	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/checkit.sh	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,6 @@
+if [ -z $1 ] ; then
+ echo "Usage $0 <arch>"
+ exit 1
+fi
+
+xmllint --noent --nonet --noout --xinclude --postvalid $1/LFS.xml


Property changes on: profiles/CLFS/trunk/checkit.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: profiles/CLFS/trunk/config/general.ent
===================================================================
--- profiles/CLFS/trunk/config/general.ent	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/config/general.ent	2005-11-12 02:51:46 UTC (rev 2169)
@@ -1,11 +1,21 @@
 <!ENTITY LFS "/mnt/lfs">
 <!ENTITY LFS-version "CLFS-SVN-20051107">
 
-<!ENTITY packages_dir "/tools/packages-&LFS-version;">
+<!ENTITY packages_dir "/tools/packages">
 <!ENTITY build_dir "/tools/build">
 <!ENTITY skeleton_dir "/tools/skeleton-&LFS-version;">
 
+<!ENTITY lfs-user "lfs">
+<!ENTITY lfs-password "lfspassword">
+<!ENTITY lfs-user-dir "/home/&lfs-user;">
 
 <!-- Package/Patch Mirrors -->
 <!ENTITY package-mirror "ftp://ftp.linuxfromscratch.org/pub/lfs/conglomeration">
 <!ENTITY patches-mirror "http://www.linuxfromscratch.org/patches/downloads">
+
+<!ENTITY TERM "linux">
+
+<!-- Refer to the Cross-LFS book Section 5.3 for the proper settings for these variables -->
+<!ENTITY lfs-host "">
+<!ENTITY lfs-target "">
+

Added: profiles/CLFS/trunk/mips/LFS.xml
===================================================================
--- profiles/CLFS/trunk/mips/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/mips/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/mips/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/mips/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/mips/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/mips64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/mips64/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/mips64/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/mips64/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/mips64/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/mips64/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/mips64-64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/mips64-64/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/mips64-64/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/mips64-64/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/mips64-64/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/mips64-64/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/ppc/LFS.xml
===================================================================
--- profiles/CLFS/trunk/ppc/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/ppc/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/ppc/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/ppc/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/ppc/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/prep/addinguser.xml
===================================================================
--- profiles/CLFS/trunk/prep/addinguser.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/prep/addinguser.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Adding the LFS User">
+    <execute command="getent group &lfs-user; > /dev/null || groupadd">
+    	<param>&lfs-user;</param>
+    </execute>
+    <execute command="getent passwd &lfs-user; > /dev/null || useradd">
+      <param>-s /bin/bash</param>
+      <param>-g &lfs-user;</param>
+      <param>-m</param>
+      <param>-k /dev/null</param>
+      <param>&lfs-user;</param>
+    </execute>
+    <execute command="echo &lfs-user;:&lfs-password; | chpasswd" />
+    <ownership user="&lfs-user;">
+      <name>&LFS;</name>
+      <name>&LFS;/tools</name>
+      <name>&LFS;&build_dir;</name>
+    </ownership>
+  </stage>
+</alfs>

Added: profiles/CLFS/trunk/prep/creatingcrosstoolsdir.xml
===================================================================
--- profiles/CLFS/trunk/prep/creatingcrosstoolsdir.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/prep/creatingcrosstoolsdir.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+
+<alfs>
+  <stage name="Creating $LFS/cross-tools">
+    <stageinfo>
+      <user>&lfs-user;</user>
+    </stageinfo>
+    <mkdir>
+      <option>parents</option>
+      <name>&lfs-user-dir;/cross-tools</name>
+    </mkdir>
+  </stage>
+  <stage name="Creating /cross-tools">
+    <link>
+      <option>force</option>
+      <target>&lfs-user-dir;/cross-tools</target>
+      <name>/</name>
+    </link>
+  </stage>
+</alfs>

Added: profiles/CLFS/trunk/prep/creatingtoolsdir.xml
===================================================================
--- profiles/CLFS/trunk/prep/creatingtoolsdir.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/prep/creatingtoolsdir.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % profile_entities SYSTEM "../config/profile.ent">
+
+%general_entities;
+%profile_entities;
+]>
+<alfs>
+  <stage name="Creating the $LFS/tools Directory">
+    <mkdir>
+      <option>parents</option>
+      <name>&LFS;/tools</name>
+    </mkdir>
+    <link>
+      <option>force</option>
+      <target>&LFS;/tools</target>
+      <name>/</name>
+    </link>
+    <!-- From this point forward isn't in the book, it's only here for nALFS to use -->
+    <mkdir base="&LFS;">
+      <option>parents</option>
+      <name>&LFS;&packages_dir;</name>
+      <name>&LFS;&build_dir;</name>
+      <name>&LFS;&skeleton_dir;</name>
+    </mkdir>
+    <stage name="Copying skeleton configuration files">
+      <copy>
+        <option>recursive</option>
+        <source>&lfs-profile;/&skeleton;/*</source>
+	<destination>&LFS;&skeleton_dir;</destination>
+      </copy>
+    </stage>
+  </stage>
+</alfs>

Added: profiles/CLFS/trunk/prep/settingenvironment.xml
===================================================================
--- profiles/CLFS/trunk/prep/settingenvironment.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/prep/settingenvironment.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+%general_entities;
+]>
+<alfs>
+  <stage name="Setting Up the Environment">
+    <stageinfo>
+      <user>&lfs-user;</user>
+    </stageinfo>
+    <copy>
+      <source>&skeleton_dir;/home/lfs/dot_bash_profile</source>
+      <destination>&lfs-user-dir;/.bash_profile</destination>
+    </copy>
+    <copy>
+      <source>&skeleton_dir;/home/lfs/dot_bashrc</source>
+      <destination>&lfs-user-dir;/.bashrc</destination>
+    </copy>
+    <search_replace>
+      <file>&lfs-user-dir;/.bashrc</file>
+      <find>[LFS]</find>
+      <replace>&LFS;</replace>
+    </search_replace>
+  </stage>
+</alfs>

Added: profiles/CLFS/trunk/runit.sh
===================================================================
--- profiles/CLFS/trunk/runit.sh	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/runit.sh	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+if [ -z $1 ] ; then
+ echo "Usage $0 <arch>"
+ exit 1
+fi
+
+if [ $(id -u) -ne 0 ]; then
+   echo "Attention: this profile should be run as root"
+   exit 3
+fi
+
+if [ ! -e config ]; then
+  echo "Attention: You must create a config directory (or link)"
+fi
+
+CURRENTDIR=`pwd`
+echo "<!ENTITY lfs-profile '${CURRENTDIR}'>" > config/profile.ent
+
+if [ -z "${2}" ]; then
+  SKELETON=skeleton
+else
+  SKELETON=${2}
+fi
+echo "<!ENTITY skeleton '${SKELETON}'>" >> config/profile.ent
+
+umask 022
+nALFS -l -L nalfs.log $1/LFS.xml


Property changes on: profiles/CLFS/trunk/runit.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: profiles/CLFS/trunk/sparc/LFS.xml
===================================================================
--- profiles/CLFS/trunk/sparc/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/sparc/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/sparc/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/sparc/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/sparc/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/sparc64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/sparc64/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/sparc64/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/sparc64/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/sparc64/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/sparc64/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/sparc64-64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/sparc64-64/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/sparc64-64/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/sparc64-64/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/sparc64-64/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/sparc64-64/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/x86/LFS.xml
===================================================================
--- profiles/CLFS/trunk/x86/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/x86/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/x86/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/x86/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/x86/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/x86_64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/x86_64/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/x86_64/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/x86_64/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/x86_64/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/x86_64/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>

Added: profiles/CLFS/trunk/x86_64-64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/x86_64-64/LFS.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/x86_64-64/LFS.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+  <!ENTITY % general_entities SYSTEM "../config/general.ent">
+
+  %general_entities;
+]>
+<alfs version="3.1" xmlns:xi="http://www.w3.org/2003/XInclude">
+  <stage name="Cross-LFS">
+    <stage name="Preparations">
+      <xi:include href="../prep/creatingtoolsdir.xml" />
+      <xi:include href="../prep/addinguser.xml" />
+      <xi:include href="../prep/settingenvironment.xml" />
+      <xi:include href="../prep/creatingcrosstoolsdir.xml" />
+    </stage>
+    <stage name="Creating Cross-Compile Tools">
+      <stageinfo>
+	<root>/</root>
+	<user>&lfs-user;</user>
+	<environment>
+	  <variable name="LFS">&LFS;</variable>
+	  <variable name="LC_ALL">POSIX</variable>
+	  <variable name="PATH">/cross-tools/bin:/bin:/usr/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="HOME">&lfs-user-dir;</variable>
+	  <variable name="LFS_HOST">&lfs-host;</variable>
+	  <variable name="LFS_TARGET">&lfs-target;</variable>
+	</environment>
+      </stageinfo>
+      <xi:include href="cross-tools/linux-libc-headers.xml" />
+    </stage>
+  </stage>
+</alfs>

Modified: profiles/CLFS/trunk/x86_64-64/cross-tools/linux-libc-headers.xml
===================================================================
--- profiles/CLFS/trunk/x86_64-64/cross-tools/linux-libc-headers.xml	2005-11-12 01:53:51 UTC (rev 2168)
+++ profiles/CLFS/trunk/x86_64-64/cross-tools/linux-libc-headers.xml	2005-11-12 02:51:46 UTC (rev 2169)
@@ -13,7 +13,7 @@
     <stage name="Download and Check">
       <download>
 	<file>&linux-libc-headers-package;</file>
-	<url>&linux-libc-headers-package-url;</file>
+	<url>&linux-libc-headers-package-url;</url>
 	<destination>&packages_dir;</destination>
 	<digest>&linux-libc-headers-md5;</digest>
       </download>




More information about the alfs-log mailing list