Skip to content

Commit

Permalink
bugfix: previous commit broke support for CVA6 and unmatched SMs
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jan 26, 2024
1 parent 767e246 commit eb03c0d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions overlays/keystone/boot/keystone-sm/keystone-sm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ endif
KEYSTONE_SM_DEPENDENCIES += host-keystone-sdk
$(KEYSTONE_SM_CONFIGURE): host-keystone-sdk-install

ifeq ($(KEYSTONE_PLATFORM),generic)
ifeq ($(KEYSTONE_PLATFORM),mpfs)
HSS_DEPENDENCIES += keystone-sm
$(HSS_TARGET_CONFIGURE): keystone-sm-install

# Point HSS at the SM
HSS_MAKE_OPTS += KEYSTONE_SM=$(KEYSTONE_SM_BUILDDIR)

# Make keystone-sm dircleans also trigger hss-dircleans
keystone-sm-dirclean: hss-dirclean
else
OPENSBI_DEPENDENCIES += keystone-sm
$(OPENSBI_TARGET_CONFIGURE): keystone-sm-install

Expand All @@ -31,16 +40,5 @@ OPENSBI_MAKE_ENV += PLATFORM_RISCV_TOOLCHAIN_DEFAULT=1
keystone-sm-dirclean: opensbi-dirclean
endif

ifeq ($(KEYSTONE_PLATFORM),mpfs)
HSS_DEPENDENCIES += keystone-sm
$(HSS_TARGET_CONFIGURE): keystone-sm-install

# Point HSS at the SM
HSS_MAKE_OPTS += KEYSTONE_SM=$(KEYSTONE_SM_BUILDDIR)

# Make keystone-sm dircleans also trigger hss-dircleans
keystone-sm-dirclean: hss-dirclean
endif

$(eval $(keystone-package))
$(eval $(generic-package))

0 comments on commit eb03c0d

Please sign in to comment.