From dad780ec111be4b23024a2f156e8e1ea7902514c Mon Sep 17 00:00:00 2001 From: Jess Robinson Date: Tue, 15 Jan 2013 10:26:22 +0000 Subject: [PATCH] Introduce $targetport to allow running on a non-standard ssh port Such as when using user networking on qemu and redirecting a local port to the emulator ssh --- Configure | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Configure b/Configure index 7e8ad6e..c778794 100755 --- a/Configure +++ b/Configure @@ -210,6 +210,7 @@ run='' targetarch='' targetdir='' targethost='' +targetport='' to='' sysroot='' usecrosscompile='' @@ -2899,6 +2900,11 @@ $define|true|[yY]*) echo "Guessing targetuser $targetuser." >&4 ;; esac + case "$targetport" in + '') targetport=22 + echo "Guessing targetport $targetport." >&4 + ;; + esac case "$targetfrom" in scp) q=-q ;; *) q='' ;; @@ -2919,7 +2925,8 @@ case "\$cwd" in esac exe=\$1 shift -$targetrun -l $targetuser $targethost "cd \$cwd && ./\$exe \$@" +$to \$exe +$targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && ./\$exe \$@" EOF ;; *) echo "Unknown targetrun '$targetrun'" >&4 @@ -2930,7 +2937,7 @@ EOF */Cross/mkdir) cat >$targetmkdir <