summaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2016-11-25 15:27:41 +0100
committerMartin Roth <martinroth@google.com>2016-11-28 01:01:58 +0100
commit1b593e5ad76bb66298c6f39b2cfb6fdf1f784c38 (patch)
tree48ad0b9f726d8ff6802b0eb8d654edfdf40619e7 /util/crossgcc/buildgcc
parent696abfcfd3fb58b985d24903c670a2c25bed2214 (diff)
util/crossgcc: fix using -D
Otherwise errors similar to "touch: cannot touch '${TARGETDIR}/.GMP.6.1.0.success': No such file or directory" might occur. Change-Id: I4f24c93a25b7d567d3ce14a0415d20fd0778c9c8 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/17603 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 949e17c396..72e8366df9 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -388,20 +388,20 @@ build_for_host()
{
package="$1"
version="$(eval echo \$$package"_VERSION")"
- generic_build "$package" host "build-$package" "${TARGETDIR}/.${package}.${version}.success" "$version"
+ generic_build "$package" host "build-$package" "${DESTDIR}${TARGETDIR}/.${package}.${version}.success" "$version"
}
build_for_target()
{
package="$1"
version="$(eval echo \$$package"_VERSION")"
- generic_build "$package" target "build-${TARGETARCH}-$package" "${TARGETDIR}/.${TARGETARCH}-${package}.${version}.success" "$version"
+ generic_build "$package" target "build-${TARGETARCH}-$package" "${DESTDIR}${TARGETDIR}/.${TARGETARCH}-${package}.${version}.success" "$version"
}
build()
{
if package_uses_targetarch $1; then
- if [ $BOOTSTRAP -eq 1 -a ! -f "${TARGETDIR}/.GCC.success" ]; then
+ if [ $BOOTSTRAP -eq 1 -a ! -f "${DESTDIR}${TARGETDIR}/.GCC.success" ]; then
build_for_host GCC
fi
build_for_target $1