-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from viv-eth/vivianep/chimera-target
[targets] Add Chimera as target platform
- Loading branch information
Showing
5 changed files
with
29 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,24 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Moritz Scherer <[email protected]> | ||
# Viviane Potocnik <[email protected]> | ||
|
||
set(AVAILABLE_TARGETS | ||
"cheshire" | ||
"chimera-open" | ||
CACHE STRING "Available Targets" | ||
) | ||
|
||
get_property(OPT_STRINGS CACHE OPT PROPERTY STRINGS) | ||
|
||
add_target_source(${TARGET_PLATFORM}) | ||
if(NOT TARGET_PLATFORM IN_LIST AVAILABLE_TARGETS) | ||
message(FATAL_ERROR "Wrong value for TARGET_PLATFORM: Got ${TARGET_PLATFORM}. Available targets are: ${AVAILABLE_TARGETS}") | ||
endif() | ||
|
||
if (TARGET_PLATFORM STREQUAL "cheshire") | ||
add_subdirectory(cheshire) | ||
endif() | ||
|
||
if (TARGET_PLATFORM STREQUAL "chimera-open") | ||
add_subdirectory(chimera-open) | ||
endif() |
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 |
---|---|---|
|
@@ -3,25 +3,27 @@ | |
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Moritz Scherer <[email protected]> | ||
# Viviane Potocnik <[email protected]> | ||
|
||
file(GLOB_RECURSE ASM_SOURCES | ||
"src/runtime/crt0.S" | ||
"src/crt0.S" | ||
) | ||
|
||
file(GLOB_RECURSE C_SOURCES | ||
"src/*.c" | ||
) | ||
|
||
set_property(SOURCE ${ASM_SOURCES} PROPERTY LANGUAGE ASM) | ||
add_library(runtime OBJECT ${ASM_SOURCES} ${C_SOURCES}) | ||
|
||
set(ISA rv32imc) | ||
set(ABI ilp32) | ||
|
||
target_include_directories(runtime | ||
PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR}/include | ||
) | ||
|
||
set(ISA rv32imc) | ||
set(ABI ilp32) | ||
|
||
target_compile_options(runtime | ||
PUBLIC | ||
-march=${ISA} | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
/* Nicole Narr <[email protected]> */ | ||
/* Christopher Reinwardt <[email protected]> */ | ||
/* Paul Scheffler <[email protected]> */ | ||
/* Lorenzo Leone <[email protected]> */ | ||
|
||
|
||
INCLUDE common.ldh | ||
|
||
|
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