From 34e931fa159c3ca7a743a2dc1a4f2bff71d4835f Mon Sep 17 00:00:00 2001 From: Jingru Wang Date: Wed, 24 Nov 2021 09:26:52 +0800 Subject: [PATCH] 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 https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp/issues/174 Signed-off-by: Jingru Wang --- options/toolchain/toolchain_gnu.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/toolchain/toolchain_gnu.mk b/options/toolchain/toolchain_gnu.mk index d358e2e19..4b9934151 100644 --- a/options/toolchain/toolchain_gnu.mk +++ b/options/toolchain/toolchain_gnu.mk @@ -156,7 +156,7 @@ ifeq ($(findstring $(MAKECMDGOALS),run gui),) endif endif else - OPENOCD_SCRIPT_ROOT = $(OPENOCD_EXECUTABLE_ROOT)/share/openocd/scripts + OPENOCD_SCRIPT_ROOT = $(OPENOCD_EXECUTABLE_ROOT)/../share/openocd/scripts endif ## Don't change this line