[yocto] [meta-mingw][PATCH 3/9][master][jethro] toolchain-scripts-mingw32: Use short paths (8.3)

Mark Hatle mark.hatle at windriver.com
Tue Feb 9 18:39:54 PST 2016


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 <mark.hatle at windriver.com>
---
 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
-- 
2.5.0




More information about the yocto mailing list