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>
This commit is contained in:
		| @@ -14,7 +14,7 @@ if( opendir SD, "$Bin/../staging_dir" ) | |||||||
| { | { | ||||||
| 	my ( $tid, $arch, $libc, @arches ); | 	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"); | 		print("Using target $1 ($2)\n"); | ||||||
| 		($arch, $libc) = ($1, $2); | 		($arch, $libc) = ($1, $2); | ||||||
| @@ -58,7 +58,7 @@ if( opendir SD, "$Bin/../staging_dir" ) | |||||||
| 		my ( $fh, $fp ) = tempfile(); | 		my ( $fh, $fp ) = tempfile(); | ||||||
|  |  | ||||||
| 		# Find sysroot | 		# 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; | 		print $fh "set sysroot $sysroot\n" if $sysroot; | ||||||
| 		my $cmd = "target extended-remote"; | 		my $cmd = "target extended-remote"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Hauke Mehrtens
					Hauke Mehrtens