From 559303c24424b9908104fcda4532621f22ab831c Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Mon, 15 Mar 2021 16:54:05 +0800 Subject: [PATCH] build: Align NUCLEI_RISCV_GCC_ROOT to gcc folder Now you can set NUCLEI_SDK_TOOL_ROOT variable to where your toolchain located in your Makefile.global or Makefile.local or Makefile. Such as: (in Build/Makefile.global, this file should be created by you) NUCLEI_SDK_TOOL_ROOT=/home/hqfang/mysofts/NucleiStudio_IDE_202102/NucleiStudio/toolchain Issue see #24 Signed-off-by: Huaqi Fang <578567190@qq.com> --- Build/Makefile.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/Makefile.conf b/Build/Makefile.conf index f460eed9..734e8af2 100644 --- a/Build/Makefile.conf +++ b/Build/Makefile.conf @@ -4,12 +4,12 @@ #!< Nuclei SDK Tools Root COMPILE_PREFIX ?= riscv-nuclei-elf- NUCLEI_SDK_TOOL_ROOT ?= $(NUCLEI_SDK_ROOT)/prebuilt_tools -NUCLEI_RISCV_GCC_ROOT ?= $(NUCLEI_SDK_TOOL_ROOT)/$(COMPILE_PREFIX)gcc +NUCLEI_RISCV_GCC_ROOT ?= $(NUCLEI_SDK_TOOL_ROOT)/gcc NUCLEI_OPENOCD_ROOT ?= $(NUCLEI_SDK_TOOL_ROOT)/openocd NUCLEI_SDK_TOOL_ROOT_EXIST = 0 ifneq ($(wildcard $(NUCLEI_RISCV_GCC_ROOT)),) -ifneq ($(wildcard $(NUCLEI_RISCV_GCC_ROOT)),) +ifneq ($(wildcard $(NUCLEI_OPENOCD_ROOT)),) NUCLEI_SDK_TOOL_ROOT_EXIST = 1 endif endif