summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-09 13:38:38 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-09 13:38:38 +0000
commit5f27a5d8141bf93131262f257000d9acad7e4986 (patch)
treef5655e44c2ad6cbf7631037d5b0b537fdab24ad7 /run-bootstrap-in-chroot
parent9280dc8834e3976931e4e2f8840fecd2c8834a0d (diff)
downloadmorph-5f27a5d8141bf93131262f257000d9acad7e4986.tar.gz
Create the ccache directory in the right place.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot18
1 files changed, 9 insertions, 9 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot
index 3110e24a..68c61d65 100755
--- a/run-bootstrap-in-chroot
+++ b/run-bootstrap-in-chroot
@@ -116,6 +116,15 @@ gawk,bison,python,autoconf,autopoint,automake,gettext,libtool,\
help2man,texinfo,sudo,ccache \
squeeze "$dir" "$DEBIAN_MIRROR"
+ # prepare the ccache directory in the chroot, if necessary
+ if [ "x$CCACHE_HOST_DIR" = "x" ]; then
+ # print a warning if the CCACHE_HOST_DIR is not set
+ echo "CCACHE_HOST_DIR is unspecified, but that's ok" >&2
+ else
+ # create the directory for cached ccache object files
+ mkdir -p "$1/var/tmp/ccache"
+ fi
+
# We need a backport of tar 1.26. On ARM, older versions (possibly
# prior to 1.25) have a bug unpacking things onto an NFS filesystem.
# code.liw.fi has the backport, so we'll add that to apt's sources.list
@@ -138,15 +147,6 @@ cat <<EOF > "$dir/etc/hosts"
127.0.1.1 `hostname`
EOF
-# prepare the ccache directory in the chroot, if necessary
-if [ "x$CCACHE_HOST_DIR" = "x" ]; then
- # print a warning if the CCACHE_HOST_DIR is not set
- echo "CCACHE_HOST_DIR is unspecified, but that's ok" >&2
-else
- # create the directory for cached ccache object files
- mkdir -p "$1/var/tmp/ccache"
-fi
-
if [ "x$LFS_MIRROR" = x ]; then
cp wget-list "$dir/wget-list"
else