Skip to content

Commit

Permalink
target: Replace ROOT with SNITCH_ROOT for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 5, 2024
1 parent 9710ab9 commit a205727
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions target/snitch_cluster/sw/apps/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions target/snitch_cluster/sw/runtime/runtime.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a205727

Please sign in to comment.