aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMolly A. McCollum <molly@rvrsys.net>2023-12-31 22:03:39 -0500
committerIan Moffett <ian@osmora.org>2023-12-31 22:26:41 -0500
commitad8fbcd87b58d9ea2b45f158ca9a95de3689a6d9 (patch)
treeed35141148d9fe65e0353dc67f9a339e12315e48 /tools
parent835d2e64c5a658d683fcb5dc46c856af03c41d01 (diff)
build: tools: Handle path spaces in cross.sh
Modify cross.sh to accomodate for spaces in paths Signed-off-by: Molly A. McCollum <molly@rvrsys.net> Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/cross.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/cross.sh b/tools/cross.sh
index 2d4e660..63184c4 100644
--- a/tools/cross.sh
+++ b/tools/cross.sh
@@ -69,8 +69,8 @@ PREFIX="$(pwd)/cross"
export PATH="$PREFIX/bin:$PATH"
# Create build directory
-mkdir -p $PREFIX/build
-cd $PREFIX/build
+mkdir -p "$PREFIX/build"
+cd "$PREFIX/build"
################################################################
# Download and extract sources
@@ -124,9 +124,9 @@ mkdir build-gcc
cd build-gcc
../$GCC_NAME/configure --target="$TARGET" --prefix="$PREFIX" --disable-nls --enable-languages=c --without-headers
echo "Building all-gcc..."
-$MAKE all-gcc -j$CORES
+$MAKE all-gcc -j"$CORES"
echo "Building all-target-libgcc..."
-$MAKE all-target-libgcc -j$CORES
+$MAKE all-target-libgcc -j"$CORES"
echo "Installing $GCC_NAME..."
$MAKE install-gcc
echo "Installing target-libgcc..."
@@ -140,7 +140,7 @@ rm -rf $GCC_NAME build-gcc
################################################################
clear
-$TARGET-ld -v
-$TARGET-gcc --version | head -n1
+"$TARGET"-ld -v
+"$TARGET"-gcc --version | head -n1
echo "Build complete, binaries are in $PREFIX"
echo "Finished in $(($SECONDS / 60)) minutes and $(($SECONDS % 60)) seconds"