Skip to content

Commit

Permalink
build: Align NUCLEI_RISCV_GCC_ROOT to gcc folder
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fanghuaqi committed Mar 15, 2021
1 parent 4274f50 commit 559303c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/Makefile.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 559303c

Please sign in to comment.