Skip to content

Commit 69990ee

Browse files
committed
Fix RISC-V build errors when MAXIM_PATH is empty
1 parent 4c7454d commit 69990ee

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

Examples/MAX78000/CNN/faceid_evkit-riscv/Makefile.ARM

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ COMPILER=GCC
5959
include ./project.mk
6060
$(info Loaded project.mk)
6161

62+
ifeq "$(MAXIM_PATH)" ""
63+
DEPTH := ../../../../
64+
MAXIM_PATH := $(abspath $(DEPTH))
65+
endif
66+
6267
# This is the path to the CMSIS root directory
6368
ifeq "$(MAXIM_PATH)" ""
6469
LIBS_DIR=../../../../Libraries

Examples/MAX78000/CNN/faceid_evkit-riscv/Makefile.RISCV

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ $(info Loaded project.mk)
6262
RISCV_CORE=RV32
6363
export RISCV_CORE
6464

65+
ifeq "$(MAXIM_PATH)" ""
66+
DEPTH := ../../../../
67+
MAXIM_PATH := $(abspath $(DEPTH))
68+
endif
69+
6570
# This is the path to the CMSIS root directory
6671
ifeq "$(MAXIM_PATH)" ""
6772
LIBS_DIR=../../../../Libraries

Examples/MAX78000/CNN/kws20_demo-riscv/Makefile.ARM

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ COMPILER=GCC
5959
include ./project.mk
6060
$(info Loaded project.mk)
6161

62+
ifeq "$(MAXIM_PATH)" ""
63+
DEPTH := ../../../../
64+
MAXIM_PATH := $(abspath $(DEPTH))
65+
endif
66+
6267
# This is the path to the CMSIS root directory
6368
ifeq "$(MAXIM_PATH)" ""
6469
LIBS_DIR=../../../../Libraries

Examples/MAX78000/CNN/kws20_demo-riscv/Makefile.RISCV

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ COMPILER=GCC
5959
include ./project.mk
6060
$(info Loaded project.mk)
6161

62+
ifeq "$(MAXIM_PATH)" ""
63+
DEPTH := ../../../../
64+
MAXIM_PATH := $(abspath $(DEPTH))
65+
endif
66+
6267
RISCV_CORE=RV32
6368
export RISCV_CORE
6469

Examples/MAX78000/CNN/mnist-riscv/Makefile.ARM

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ ifeq "$(BOARD)" ""
5555
BOARD=EvKit_V1
5656
endif
5757

58+
ifeq "$(MAXIM_PATH)" ""
59+
DEPTH := ../../../../
60+
MAXIM_PATH := $(abspath $(DEPTH))
61+
endif
62+
5863
# This is the path to the CMSIS root directory
5964
ifeq "$(MAXIM_PATH)" ""
6065
LIBS_DIR=../../../../Libraries

Examples/MAX78000/CNN/mnist-riscv/Makefile.RISCV

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ endif
5858
RISCV_CORE=RV32
5959
export RISCV_CORE
6060

61+
ifeq "$(MAXIM_PATH)" ""
62+
DEPTH := ../../../../
63+
MAXIM_PATH := $(abspath $(DEPTH))
64+
endif
65+
6166
# This is the path to the CMSIS root directory
6267
ifeq "$(MAXIM_PATH)" ""
6368
LIBS_DIR=../../../../Libraries

0 commit comments

Comments
 (0)