[coreboot-gerrit] New patch to review for coreboot: util/crossgcc: fix using -D

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Fri Nov 25 15:34:23 CET 2016


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17603

-gerrit

commit 4e7df06c8e1ebe450ddc4e9c601c898b30452c75
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Fri Nov 25 15:27:41 2016 +0100

    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 at chromium.org>
---
 util/crossgcc/buildgcc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 949e17c..72e8366 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



More information about the coreboot-gerrit mailing list