diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-15 13:31:40 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-15 13:31:40 +0000 |
commit | 555b69966e488b89e6f07b3fcd8173fa58b041aa (patch) | |
tree | 923d7197be7f56d85cdc14eb2a4e17a3d43a66c4 /baserock-bootstrap | |
parent | e1dc9c385169ec3ec5cae47ad749bd7cb0bfdf5a (diff) | |
download | morph-555b69966e488b89e6f07b3fcd8173fa58b041aa.tar.gz |
bootstrap: set tempdir and install flex
flex is needed in binutils
tempdir needs to be set as binutils' install script expects the
files to be in an absolute path
also use $LFS in paths
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index a4fe61e2..0cbcdb49 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -47,13 +47,13 @@ pass1_directories() pass1_get_sources_with_morph() { - cd /tree/baserock/gits/morph - $HOST_MKDIR -p /baserock/cache + cd $LFS/baserock/gits/morph + $HOST_MKDIR -p $LFS/baserock/cache export PATH="/usr/bin:/bin:$tools/bin:$tools/sbin" while ! python ./morph --verbose update-gits \ morphs rm/morph-pass1 bootstrap-pass1.morph \ - --cachedir=/tree/baserock/cache \ - --log=/tree/baserock/morph.log \ + --cachedir=$LFS/baserock/cache \ + --log=$LFS/baserock/morph.log \ --dump-memory-profile=none \ --keep-path \ --bundle-server="$GIT_BUNDLES" @@ -64,16 +64,18 @@ pass1_get_sources_with_morph() pass1_build_with_morph() { - cd /tree/baserock/gits/morph - $HOST_MKDIR -p /baserock/cache + cd $LFS/baserock/gits/morph + $HOST_MKDIR -p $LFS/baserock/cache + $HOST_MKDIR -p $LFS/tmp export PATH="/usr/bin:/bin:$tools/bin:$tools/sbin" python ./morph --verbose build \ morphs rm/morph-pass1 bootstrap-pass1.morph \ --no-git-update \ --no-distcc \ --bootstrap \ - --cachedir=/tree/baserock/cache \ - --log=/baserock/morph.log \ + --cachedir=$LFS/baserock/cache \ + --tempdir=$LFS/tmp + --log=$LFS/baserock/morph.log \ --dump-memory-profile=none \ --keep-path \ --prefix="$tools" \ |