From 35704684c8fda92ca7d909ed9f33db8d7daf4d26 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 25 Feb 2015 14:24:28 -0600 Subject: toolchain-scripts-mingw32: Use short paths (8.3) When using standard paths, the user may end up exceeding the path length to some toolchain helper libraries (DLLs) and binaries. By switching to using the "short path", we can avoid this in many more cases. If the user does exceed the path length, their only option will be to move the SDK lower in their directory tree. Signed-off-by: Mark Hatle --- classes/toolchain-scripts-mingw32.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/toolchain-scripts-mingw32.bbclass b/classes/toolchain-scripts-mingw32.bbclass index 5ac69a1..0353875 100644 --- a/classes/toolchain-scripts-mingw32.bbclass +++ b/classes/toolchain-scripts-mingw32.bbclass @@ -10,7 +10,8 @@ toolchain_create_sdk_env_script_sdkmingw32 () { script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-$multimach_target_sys}.bat rm -f $script touch $script - echo 'set SDKROOT=%~dp0%' >> $script + # Be sure to use the 'short' path, so we can have deeper directories. + echo 'set SDKROOT=%~sdp0%' >> $script echo 'set SDKTARGETSYSROOT=%SDKROOT%'"$sysroot" >> $script EXTRAPATH="" for i in ${CANADIANEXTRAOS}; do -- cgit v1.2.3-54-g00ecf