-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmcuboot_config.h
More file actions
74 lines (62 loc) · 1.78 KB
/
Copy pathmcuboot_config.h
File metadata and controls
74 lines (62 loc) · 1.78 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* Copyright (c) 2018 Open Source Foundries Limited
* Copyright (c) 2019 Arm Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Original code taken from mcuboot project at:
* https://github.com/JuulLabs-OSS/mcuboot
* Git SHA of the original version: ac55554059147fff718015be9f4bd3108123f50a
*/
#ifndef __MCUBOOT_CONFIG_H__
#define __MCUBOOT_CONFIG_H__
#ifdef __cplusplus
extern "C" {
#endif
/*
* This file is also included by the simulator, but we don't want to
* define anything here in simulator builds.
*
* Instead of using mcuboot_config.h, the simulator adds MCUBOOT_xxx
* configuration flags to the compiler command lines based on the
* values of environment variables. However, the file still must
* exist, or bootutil won't build.
*/
#ifndef __BOOTSIM__
/*
* In TF-M most of the configuration flags (e.g. signature type,
* upgrade mode ...) are handled by the CMake-based buildsystem and
* added to the compiler command lines.
*/
/*
* Cryptographic settings
*/
#define MCUBOOT_USE_MBED_TLS
/*
* Logging
*/
#define MCUBOOT_HAVE_LOGGING 1
#endif /* !__BOOTSIM__ */
/*
* Maximum size of the measured boot record.
*
* Its size can be calculated based on the following aspects:
* - There are 5 allowed software component claims,
* - SHA256 is used as the measurement method for the other claims.
* Considering these aspects, the only claim which size can vary is the type
* of the software component with a maximum length of 12 bytes, which means
* the boot record size can be up to 100 bytes.
*/
#define MAX_BOOT_RECORD_SZ (100u)
/*
* Watchdog feeding
*/
#define MCUBOOT_WATCHDOG_FEED() \
do { \
/* Do nothing. */ \
} while (0)
#ifdef __cplusplus
}
#endif
#endif /* __MCUBOOT_CONFIG_H__ */