Skip to content

Commit

Permalink
[cheshire] Add config parametrization to RVV kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Oct 16, 2024
1 parent 3ca23b3 commit 377ae7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cheshire/sw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ APPS := $(patsubst $(ARA_APPS)/%/main.c,%,$(shell find $(ARA_APPS) -name "main
SW_C := $(wildcard $(ARA_SW)/src/*.c)
DEPS_H := $(wildcard $(ARA_SW)/include/*.h)

# Hardware configuration for the Ara RVV kernels
# Can be chosen in [2|4|8|16]_lanes
ARA_CONFIGURATION ?= 2_lanes
include $(ARA_ROOT)/config/$(ARA_CONFIGURATION).mk

Expand Down
2 changes: 1 addition & 1 deletion cheshire/sw/cva6-sdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(TARGET_OS_TOOLCHAIN): $(CVA6_SDK_UPDATED)
########################

$(ARA_APPS)/bin/%-linux: $(shell find $(ARA_APPS)/$* -name "*.c" -o -name "*.S") $(TARGET_OS_TOOLCHAIN)
make -C $(ARA_APPS) bin/$*-linux LINUX=1
make -C $(ARA_APPS) bin/$*-linux LINUX=1 config=${ARA_CONFIGURATION}

.PRECIOUS: $(CVA6_SDK_ROOT)/rootfs/%
$(CVA6_SDK_ROOT)/rootfs/%: $(ARA_APPS)/bin/%-linux
Expand Down

0 comments on commit 377ae7c

Please sign in to comment.