Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
511328c3aThis file is pinned to the selected release. Download the original to open it in your design tool.
# Copyright © 2024, Julian Scheffers, see LICENSE for more information
cmake_minimum_required(VERSION 3.10.0)
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
project(boaprog C)
set(target boaprog)
add_definitions(
-DKBELF_CROSS
-DKBELF_MACHINE=KBELF_MACHINE_RISCV
-DKBELF_RISCV_HOST_RVC=1
-DKBELF_RISCV_HOST_FABI=KBELF_RISCV_FLAG_FABI_SOFT
-DKBELF_RISCV_HOST_RVE=0
-DDATA_MAX=65536
)
add_subdirectory(kbelf)
add_executable(${target}
src/kbelfx.c
src/main.c
)
target_include_directories(${target} PRIVATE include)
target_link_libraries(${target} PRIVATE kbelf)