File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2020
2121SHELL := /bin/bash
2222
23+ CMAKE_BUILDDIR ?= build
2324BUILD_DIR ?= ../sw/tests/$(test )
2425MAGIA_DIR ?= ../
2526GVSOC_DIR ?= ./gvsoc
@@ -39,7 +40,7 @@ tiles_2 := $(shell echo $$(( $(tiles) * $(tiles) )))
3940tiles_log := $(shell awk 'BEGIN { printf "% .0f", log($(tiles_2 ) ) /log(2) }')
4041tiles_log_real := $(shell awk 'BEGIN { printf "% .0f", log($(tiles ) ) /log(2) }')
4142
42- .PHONY : gvsoc
43+ .PHONY : gvsoc build
4344
4445clean :
4546 rm -rf build/
@@ -66,8 +67,8 @@ ifeq ($(compiler), GCC_MULTILIB)
6667 sed -i -E 's/^# add_subdirectory\(flatatt\)/add_subdirectory\(flatatt\)/' ./tests/magia/mesh/CMakeLists.txt
6768 sed -i -E 's/^\/\/# include "utils\/attention_utils.h"/#include "utils\/attention_utils.h"/' ./targets/magia/include/tile.h
6869endif
69- cmake -DTARGET_PLATFORM=$(target_platform) -DEVAL=$(eval) -DCOMPILER=$(compiler) -B build --trace-expand
70- cmake --build build --verbose
70+ cmake -DTARGET_PLATFORM=$(target_platform) -DEVAL=$(eval) -DCOMPILER=$(compiler) -B $(CMAKE_BUILDDIR) --trace-expand
71+ cmake --build $(CMAKE_BUILDDIR) --verbose
7172
7273set_mesh :
7374ifeq ($(tiles ) , 1)
You can’t perform that action at this time.
0 commit comments