[OpenWrt-Devel] [PATCH 2/2] scripts: remote-gdb: Fix sysroot detection
Karl Palsson
karlp at tweak.net.au
Fri Jan 23 05:37:07 EST 2015
From: Karl Palsson <karlp at remake.is>
Changes in target detection results in tweaks to the sysroot detection.
Signed-off-by: Karl Palsson <karlp at 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 at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list