comparison host-tools.sh @ 1645:a242ea5d6bb4

Make host-tools.sh update the record-commands wrapper so we can log the distcc, genext2fs, e2fsprogs, and mksquashfs builds.
author Rob Landley <rob@landley.net>
date Thu, 03 Apr 2014 06:01:11 -0500
parents 6a8114c148d1
children 946d9e8f1752
comparison
equal deleted inserted replaced
1644:cc716bec3527 1645:a242ea5d6bb4
33 # should be a NOP. 33 # should be a NOP.
34 34
35 blank_tempdir "$WORK" 35 blank_tempdir "$WORK"
36 mkdir -p "$STAGE_DIR" || dienow 36 mkdir -p "$STAGE_DIR" || dienow
37 37
38 # If we're not recording the host command lines, then populate a directory 38 # Populate a directory with host versions of all the command line utilities
39 # with host versions of all the command line utilities we're going to install 39 # we're going to install into root-filesystem. When we're done, PATH can be
40 # into root-filesystem. When we're done, PATH can be set to include just this 40 # set to include just this directory and nothing else.
41 # directory and nothing else.
42 41
43 # This serves three purposes: 42 # This serves three purposes:
44 # 43 #
45 # 1) Enumerate exactly what we need to build the system, so we can make sure 44 # 1) Enumerate exactly what we need to build the system, so we can make sure
46 # root-filesystem has everything it needs to rebuild us. If anything is 45 # root-filesystem has everything it needs to rebuild us. If anything is
131 130
132 # We now have all the tools we need in $STAGE_DIR, so trim the $PATH to 131 # We now have all the tools we need in $STAGE_DIR, so trim the $PATH to
133 # remove the old ones. 132 # remove the old ones.
134 133
135 PATH="$(hosttools_path)" 134 PATH="$(hosttools_path)"
135 if [ -e "$BUILD"/record-commands ]
136 then
137 cd "$TOP" && more/record-commands.sh || dienow
138 fi
136 139
137 # This is optionally used by root-filesystem to accelerate native builds when 140 # This is optionally used by root-filesystem to accelerate native builds when
138 # running under qemu. It's not used to build root-filesystem, or to build 141 # running under qemu. It's not used to build root-filesystem, or to build
139 # the cross compiler, but it needs to be on the host system in order to 142 # the cross compiler, but it needs to be on the host system in order to
140 # use the distcc acceleration trick. 143 # use the distcc acceleration trick.