22 lines
884 B
CMake
22 lines
884 B
CMake
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
# These must come BEFORE the zephyr package declaration.
|
|
set(DTC_OVERLAY_FILE "../firmware/overlay.dts")
|
|
set(BOARD "litex_vexriscv")
|
|
set(EXTRA_CFLAGS "-Wfatal-errors -Werror -Wno-error=unused-const-variable -Wno-error=unused-variable -Wno-error=unused-function")
|
|
include("../firmware/overlay.cmake")
|
|
|
|
find_package(Zephyr)
|
|
project(upsilon)
|
|
include_directories("../firmware")
|
|
include_directories("src/")
|
|
include_directories("../creole")
|
|
include_directories("../firmware/rtl/control_loop")
|
|
|
|
set_source_files_properties(src/main.c PROPERTIES COMPILE_FLAGS -DMAIN_LOG_LEVEL=4)
|
|
set_source_files_properties(../creole/creole.c PROPERTIES COMPILE_FLAGS -DCREOLE_LOG_LEVEL=4)
|
|
|
|
# Add all source files here.
|
|
target_sources(app PRIVATE src/access.c src/buf.c src/main.c src/sock.c ../creole/creole.c)
|
|
# target_sources(app PRIVATE src/tests/test_ethernet.c)
|