Skip to content

Commit 34e931f

Browse files
committed
makefile: fix the root path of OPENOCD_SCRIPT_ROOT
The openocd scripts root directory gets calculated improperly, OPENOCD_EXECUTABLE_ROOT is the 'bin' folder, it's in the same parent dirextory as 'script', so we need use '..' to get the parent directory first. fix issue #174 Signed-off-by: Jingru Wang <jingru@synopsys.com>
1 parent 51e2475 commit 34e931f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options/toolchain/toolchain_gnu.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ ifeq ($(findstring $(MAKECMDGOALS),run gui),)
156156
endif
157157
endif
158158
else
159-
OPENOCD_SCRIPT_ROOT = $(OPENOCD_EXECUTABLE_ROOT)/share/openocd/scripts
159+
OPENOCD_SCRIPT_ROOT = $(OPENOCD_EXECUTABLE_ROOT)/../share/openocd/scripts
160160
endif
161161

162162
## Don't change this line

0 commit comments

Comments
 (0)