Skip to content

Commit

Permalink
[GVSOC] Updated to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain Haugou authored and haugoug committed Oct 17, 2023
1 parent 94f22ed commit a6c1bfb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if(CCACHE_FOUND)
set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
endif()

add_subdirectory(tools/gvsoc/core)
add_subdirectory(tools/gvsoc)

## Install pip requirements, note: does not install nntool reqs as building
## will do that
Expand Down
12 changes: 8 additions & 4 deletions rtos/pulpos/common/rules/pulpos/default_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -305,21 +305,25 @@ ifdef GVSOC_COSIM
use_gvsoc_target = 1
endif

ifeq '$(use_gvsoc_target)' '1'
GAPY_TARGET_OPT += $(foreach module,$(subst ;, , $(GVSOC_MODULES)),--target-dir=$(module)/models)
GAPY_TARGET_OPT += --model-dir=$(INSTALL_DIR)/models
else
ifneq '$(use_gvsoc_target)' '1'
GAPY_TARGET_OPT += --target-dir=$(PULP_SDK_HOME)/tools/gapy/targets
endif

override runner_args += --flash-property=boot@flash:rom:boot \
--flash-property=$(TARGETS)@flash:rom:binary

ifeq '$(platform)' 'gvsoc'
GAPY_CMD = gvsoc $(GAPY_TARGET_OPT) \
--work-dir=$(TARGET_BUILD_DIR) \
--binary=$(TARGETS) \
$(config_args) $(gapy_args) $(runner_args)
else
GAPY_CMD = $(PULP_SDK_HOME)/tools/gapy_v2/bin/gapy $(GAPY_TARGET_OPT) \
--platform=$(platform) \
--work-dir=$(TARGET_BUILD_DIR) \
--binary=$(TARGETS) \
$(config_args) $(gapy_args) $(runner_args)
endif

image:
$(GAPY_CMD) image
Expand Down

0 comments on commit a6c1bfb

Please sign in to comment.