Skip to content

Commit

Permalink
sw: Allow externally-defined platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
suehtamacv committed Oct 25, 2023
1 parent 33198b5 commit 5d81c8c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sw/snRuntime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ endif()

add_compile_options(-O3 -g -ffunction-sections)

# Platform sources
set(PLATFORM_SOURCE_FOLDER "src/platforms/standalone" CACHE STRING "Path to the platform-specific sources")

# Default memory regions
set(MEM_DRAM_ORIGIN "0x80000000" CACHE STRING "Base address of external memory")
set(MEM_DRAM_SIZE "0x80000000" CACHE STRING "Size of external memory")
Expand Down Expand Up @@ -62,8 +65,8 @@ set(sources

# platform specific sources
set(standalone_snitch_sources
src/platforms/standalone/start_snitch.S
src/platforms/standalone/putchar.c
${PLATFORM_SOURCE_FOLDER}/start_snitch.S
${PLATFORM_SOURCE_FOLDER}/putchar.c
)

# Sources only compatible with the LLVM toolchain
Expand Down

0 comments on commit 5d81c8c

Please sign in to comment.