From ee1e521a9f84baebaf6d34fc8e2d7e0dd8d56d27 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Wed, 4 Sep 2024 16:52:29 +0200 Subject: [PATCH] target: Replace `ROOT` with `SNITCH_ROOT` for portability --- target/snitch_cluster/sw/apps/common.mk | 4 ++-- target/snitch_cluster/sw/runtime/runtime.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/snitch_cluster/sw/apps/common.mk b/target/snitch_cluster/sw/apps/common.mk index 75724da961..1231d93ee4 100644 --- a/target/snitch_cluster/sw/apps/common.mk +++ b/target/snitch_cluster/sw/apps/common.mk @@ -11,7 +11,7 @@ $(APP)_HEADERS += $(SNRT_HAL_HDRS) $(APP)_INCDIRS += $(SNRT_INCDIRS) -$(APP)_INCDIRS += $(ROOT)/sw/deps/riscv-opcodes +$(APP)_INCDIRS += $(SNITCH_ROOT)/sw/deps/riscv-opcodes $(APP)_RISCV_CFLAGS += $(RISCV_CFLAGS) $(APP)_RISCV_CFLAGS += $(addprefix -I,$($(APP)_INCDIRS)) @@ -25,7 +25,7 @@ $(APP)_LIBDIRS = $(dir $($(APP)_LIBS)) $(APP)_LIBNAMES = $(patsubst lib%,%,$(notdir $(basename $($(APP)_LIBS)))) BASE_LD = $(SNRT_DIR)/base.ld -MEMORY_LD ?= $(ROOT)/target/snitch_cluster/sw/runtime/memory.ld +MEMORY_LD ?= $(SNITCH_ROOT)/target/snitch_cluster/sw/runtime/memory.ld $(APP)_RISCV_LDFLAGS += $(RISCV_LDFLAGS) $(APP)_RISCV_LDFLAGS += -L$(dir $(MEMORY_LD)) diff --git a/target/snitch_cluster/sw/runtime/runtime.mk b/target/snitch_cluster/sw/runtime/runtime.mk index a2b9074f9f..c7a22ab66e 100644 --- a/target/snitch_cluster/sw/runtime/runtime.mk +++ b/target/snitch_cluster/sw/runtime/runtime.mk @@ -8,8 +8,8 @@ # Directories # ############### -SNRT_DIR = $(ROOT)/sw/snRuntime -SNRT_TARGET_DIR = $(ROOT)/target/snitch_cluster/sw/runtime/$(SELECT_RUNTIME) +SNRT_DIR = $(SNITCH_ROOT)/sw/snRuntime +SNRT_TARGET_DIR = $(SNITCH_ROOT)/target/snitch_cluster/sw/runtime/$(SELECT_RUNTIME) SNRT_BUILDDIR = $(SNRT_TARGET_DIR)/build SNRT_SRCDIR = $(SNRT_TARGET_DIR)/src