From ad8fbcd87b58d9ea2b45f158ca9a95de3689a6d9 Mon Sep 17 00:00:00 2001 From: "Molly A. McCollum" Date: Sun, 31 Dec 2023 22:03:39 -0500 Subject: build: tools: Handle path spaces in cross.sh Modify cross.sh to accomodate for spaces in paths Signed-off-by: Molly A. McCollum Signed-off-by: Ian Moffett --- tools/cross.sh | 12 ++++++------ 1 file 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" -- cgit v1.2.3