From: Karl Palsson <ka...@remake.is>

Changes in target detection results in tweaks to the sysroot detection.

Signed-off-by: Karl Palsson <ka...@remake.is>
---
This seemed to have been broken before, even the search for gdb uses
a * after the libc pattern.

 scripts/remote-gdb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index fdd5008..4dd7d4d 100755
--- a/scripts/remote-gdb
+++ b/scripts/remote-gdb
@@ -62,7 +62,8 @@ if( opendir SD, "$Bin/../staging_dir" )
                my ( $fh, $fp ) = tempfile();
 
                # Find sysroot
-               my ($sysroot) = 
glob("$Bin/../staging_dir/target-${arch}_${libc}/root-*/");
+               my ($sysroot) = 
glob("$Bin/../staging_dir/target-${arch}_${libc}*/root-*/");
+               printf("Attempting to set sysroot: $sysroot\n");
 
                print $fh "set sysroot $sysroot\n" if $sysroot;
                my $cmd = "target extended-remote";
-- 
1.8.3.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to