Skip to content

Commit

Permalink
Bugfix/cva6 support (#447)
Browse files Browse the repository at this point in the history
This Pull request is to fix wrong platform.h path for cva6 target and
also align 32 and 64 bit buildroot configuration
  • Loading branch information
asyarifstudio authored May 29, 2024
1 parent b40dbb6 commit c175273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions overlays/keystone/configs/riscv32_cva6_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_KEYSTONE_PATH)/patches $(BR2_EXTERNAL_KEYST
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_SSP_NONE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="sifive"
BR2_SYSTEM_BIN_SH_BASH=y
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_KEYSTONE_PATH)/board/cva6/post-build.sh"
BR2_LINUX_KERNEL=y
Expand Down
7 changes: 6 additions & 1 deletion sm/src/objects.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ keystone-sm-headers += crypto.h ed25519/ed25519.h ed25519/fe.h ed25519/fixedint.
endif

# Platform headers
keystone-sm-headers += platform/$(KEYSTONE_PLATFORM)/platform.h
ifeq ($(KEYSTONE_PLATFORM),cva6)
#for CVA6, the actual target platform is fpga/ariane, so PLATFORM variable is used
keystone-sm-headers += platform/$(PLATFORM)/platform.h
else
keystone-sm-headers += platform/$(KEYSTONE_PLATFORM)/platform.h
endif

ifeq ($(KEYSTONE_PLATFORM),sifive/fu540)
keystone-sm-headers += platform/sifive/fu540/waymasks.h
Expand Down

0 comments on commit c175273

Please sign in to comment.