diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-08-01 21:59:45 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-08-01 22:02:49 +0200 |
commit | 34bffe580675e38010cf2ac23101b63168faa69b (patch) | |
tree | c33be885e3f6770ac00450e5f4f0292f838cf6b8 /scripts/remote-gdb | |
parent | 941ebafda08074c7aa03e63d435ce433a7f20027 (diff) | |
download | openwrt-34bffe580675e38010cf2ac23101b63168faa69b.tar.gz openwrt-34bffe580675e38010cf2ac23101b63168faa69b.tar.bz2 openwrt-34bffe580675e38010cf2ac23101b63168faa69b.zip |
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>
Diffstat (limited to 'scripts/remote-gdb')
-rwxr-xr-x | scripts/remote-gdb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb index 52306639fc..efb321c243 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"; |