forked from keystone-enclave/keystone
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
28 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
# We include the default objects.mk | ||
ifeq ($(PLATFORM),) | ||
$(error PLATFORM not defined for SM) | ||
endif | ||
|
||
include $(src_dir)/platform/$(PLATFORM)/objects.mk | ||
|
||
# And then also define custom keystone SM functionality | ||
ifeq ($(PLATFORM),) | ||
$(error PLATFORM not defined for SM) | ||
endif | ||
|
||
platform-genflags-y += "-DTARGET_PLATFORM_HEADER=\"platform/$(PLATFORM)/platform.h\"" | ||
|
||
include $(KEYSTONE_SM)/src/objects.mk | ||
platform-objs-y += $(addprefix ../../src/,$(subst .c,.o,$(keystone-sm-sources))) | ||
|
||
ifeq ($(KEYSTONE_PLATFORM),generic) | ||
|
||
carray-platform_override_modules-y += generic | ||
platform-objs-y += generic.o | ||
|
||
else ifeq ($(KEYSTONE_PLATFORM),hifive_unmatched) | ||
|
||
include $(KEYSTONE_SM)/plat/hifive/unmatched/objects.mk | ||
|
||
endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
# We include the default objects.mk | ||
|
||
include $(src_dir)/platform/$(PLATFORM)/objects.mk | ||
|
||
# And then also define custom keystone SM functionality | ||
ifeq ($(PLATFORM),) | ||
$(error PLATFORM not defined for SM) | ||
endif | ||
|
||
platform-genflags-y += "-DTARGET_PLATFORM_HEADER=\"platform/$(PLATFORM)/platform.h\"" | ||
|
||
include $(KEYSTONE_SM)/src/objects.mk | ||
platform-objs-y += $(addprefix ../../src/,$(subst .c,.o,$(keystone-sm-sources))) | ||
|
||
carray-platform_override_modules-y += generic | ||
platform-objs-y += generic.o | ||
|
||
carray-platform_override_modules-y += hifive_unmatched | ||
platform-objs-y += ../hifive/unmatched/unmatched.o | ||
platform-cflags-y += -I$(src_dir)/platform/generic/sifive |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "fu740.c" | ||
#include "sm.h" | ||
|
||
static int unmatched_final_init(bool cold_boot, const struct fdt_match *match) { | ||
sm_init(cold_boot); | ||
return sifive_fu740_final_init(cold_boot, match); | ||
} | ||
|
||
const struct platform_override hifive_unmatched = { | ||
.match_table = sifive_fu740_match, | ||
.tlbr_flush_limit = sifive_fu740_tlbr_flush_limit, | ||
.final_init = unmatched_final_init | ||
}; |