2020-03-26 01:16:03 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
project(SOF_RIMAGE C)
|
|
|
|
|
2020-06-16 12:59:30 +08:00
|
|
|
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
|
|
message(STATUS "No CMAKE_BUILD_TYPE, defaulting to Debug")
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build Type" FORCE)
|
|
|
|
endif()
|
|
|
|
|
2020-03-26 01:16:03 +08:00
|
|
|
add_executable(rimage
|
|
|
|
src/file_simple.c
|
|
|
|
src/cse.c
|
|
|
|
src/css.c
|
|
|
|
src/plat_auth.c
|
|
|
|
src/hash.c
|
|
|
|
src/pkcs1_5.c
|
|
|
|
src/manifest.c
|
2020-04-07 18:40:06 +08:00
|
|
|
src/ext_manifest.c
|
2020-03-26 01:16:03 +08:00
|
|
|
src/elf.c
|
|
|
|
src/rimage.c
|
2020-09-07 23:20:08 +08:00
|
|
|
src/adsp_config.c
|
|
|
|
tomlc99/toml.c
|
2020-03-26 01:16:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_options(rimage PRIVATE
|
2020-06-16 12:59:30 +08:00
|
|
|
-Wall -Werror -Wl,-EL -Wmissing-prototypes -Wimplicit-fallthrough=3
|
2020-03-26 01:16:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(rimage PRIVATE "-lcrypto")
|
|
|
|
|
|
|
|
target_include_directories(rimage PRIVATE
|
2020-05-13 22:03:34 +08:00
|
|
|
src/include/
|
2020-09-07 23:20:08 +08:00
|
|
|
tomlc99/
|
2020-03-26 01:16:03 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS rimage DESTINATION bin)
|