summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-08-01 21:59:45 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2016-08-01 22:02:49 +0200
commit34bffe580675e38010cf2ac23101b63168faa69b (patch)
treec33be885e3f6770ac00450e5f4f0292f838cf6b8
parent941ebafda08074c7aa03e63d435ce433a7f20027 (diff)
downloadmtk-20170518-34bffe580675e38010cf2ac23101b63168faa69b.zip
mtk-20170518-34bffe580675e38010cf2ac23101b63168faa69b.tar.gz
mtk-20170518-34bffe580675e38010cf2ac23101b63168faa69b.tar.bz2
scripts: fix remote-gdb with CONFIG_BUILD_SUFFIX
Fix the scripts/remote-gdb script when CONFIG_BUILD_SUFFIX is set. CONFIG_BUILD_SUFFIX extends the name of the folder build_dir/target* Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rwxr-xr-xscripts/remote-gdb4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 5230663..efb321c 100755
--- a/scripts/remote-gdb
+++ b/scripts/remote-gdb
@@ -14,7 +14,7 @@ if( opendir SD, "$Bin/../staging_dir" )
{
my ( $tid, $arch, $libc, @arches );
- if( $ARGV[1] =~ m!\btarget-(.+?)_(([^/_]+libc|musl)[^/]+)\b!i )
+ if( $ARGV[1] =~ m!\btarget-(.+?)_(([^/_]+libc|musl)[^/_]+)\b!i )
{
print("Using target $1 ($2)\n");
($arch, $libc) = ($1, $2);
@@ -58,7 +58,7 @@ 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-*/");
print $fh "set sysroot $sysroot\n" if $sysroot;
my $cmd = "target extended-remote";