-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
34 lines (27 loc) · 959 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(mender-mcu-integration)
target_sources(app PRIVATE
src/main.c
src/utils/netup.c
src/utils/certs.c
)
target_include_directories(app PUBLIC
src
)
if(CONFIG_MENDER_APP_NOOP_UPDATE_MODULE MATCHES "y")
target_sources(app PRIVATE src/modules/noop-update-module.c)
endif()
# Amazon Root CA 1 certificate from https://www.amazontrust.com/repository
# Used as primary CA certificate for Hosted Mender
generate_inc_file_for_target(app
"certs/AmazonRootCA1.cer"
"${ZEPHYR_BINARY_DIR}/include/generated/AmazonRootCA1.cer.inc"
)
# CloudFlare CA certificate
# Used as secondary CA certificate for Artifacts
# TODO: Use Google Trust Services' root CAs instead. Rework with MEN-7550
generate_inc_file_for_target(app
"certs/r2.cloudflarestorage.com1.crt"
"${ZEPHYR_BINARY_DIR}/include/generated/r2.cloudflarestorage.com1.crt.inc"
)