• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: UPG config file
15  */
16 #ifndef UPG_DEFAULT_CONFIG_H
17 #define UPG_DEFAULT_CONFIG_H
18 
19 #ifndef UPG_PRODUCT_CONFIG_H
20 #error "Include "upg_config.h" if necessary. Do not include this file directly! "
21 #endif
22 
23 #ifndef UPG_CFG_DEBUG_ENABLED
24 #define UPG_CFG_DEBUG_ENABLED                   NO
25 #endif
26 
27 #ifndef UPG_CFG_DEBUG_PRINT_ENABLED
28 #define UPG_CFG_DEBUG_PRINT_ENABLED             NO
29 #endif
30 
31 #ifndef UPG_CFG_DIRECT_FLASH_ACCESS
32 #define UPG_CFG_DIRECT_FLASH_ACCESS             NO
33 #endif
34 
35 #ifndef UPG_CFG_PROCESS_NOTIFY_SUPPORT
36 #define UPG_CFG_PROCESS_NOTIFY_SUPPORT          NO
37 #endif
38 
39 #ifndef UPG_CFG_VERIFICATION_SUPPORT
40 #define UPG_CFG_VERIFICATION_SUPPORT            NO
41 #endif
42 
43 #ifndef UPG_CFG_NV_UPGRADE_SUPPORT
44 #define UPG_CFG_NV_UPGRADE_SUPPORT              NO
45 #endif
46 
47 #ifndef UPG_CFG_DIFF_UPGRADE_SUPPORT
48 #define UPG_CFG_DIFF_UPGRADE_SUPPORT            YES
49 #endif
50 
51 #ifndef UPG_CFG_IMGAE_DECRYPT_SUPPORT
52 #define UPG_CFG_IMGAE_DECRYPT_SUPPORT           NO
53 #endif
54 
55 #ifndef UPG_CFG_PROGRESS_RECOVERY_SUPPORT
56 #define UPG_CFG_PROGRESS_RECOVERY_SUPPORT       YES
57 #endif
58 
59 #ifndef UPG_CFG_ANTI_ROLLBACK_SUPPORT
60 #define UPG_CFG_ANTI_ROLLBACK_SUPPORT           NO
61 #endif
62 
63 #ifndef UPG_CFG_HASH_VERIFY_SUPPORT
64 #define UPG_CFG_HASH_VERIFY_SUPPORT             NO
65 #endif
66 
67 #ifndef UPG_CFG_SIGNATURE_VERIFY_SUPPORT
68 #define UPG_CFG_SIGNATURE_VERIFY_SUPPORT        NO
69 #endif
70 
71 #ifndef UPG_CFG_SUPPORT_FILE_SYSTEM
72 #define UPG_CFG_SUPPORT_FILE_SYSTEM             YES
73 #endif
74 
75 #if ((UPG_CFG_DIFF_UPGRADE_SUPPORT == YES) && (UPG_CFG_PROGRESS_RECOVERY_SUPPORT != YES))
76 #error "MUST SUPPORT PROGRESS RECOVERY IN DIFF UPGRADE !"
77 #endif
78 
79 #ifndef UPG_CFG_MEMORY_DCACHE_ENABLED
80 #define UPG_CFG_MEMORY_DCACHE_ENABLED           NO
81 #endif
82 
83 #ifndef UPG_CFG_SUPPORT_IMAGE_ON_FILE_SYSTEM
84 #define UPG_CFG_SUPPORT_IMAGE_ON_FILE_SYSTEM    NO
85 #endif
86 
87 #ifndef UPG_CFG_SUPPORT_RESOURCES_FILE
88 #define UPG_CFG_SUPPORT_RESOURCES_FILE          NO
89 #endif
90 
91 #ifndef UPG_CFG_SUPPORT_ERASE_WHOLE_IMAGE
92 #define UPG_CFG_SUPPORT_ERASE_WHOLE_IMAGE       NO
93 #endif
94 
95 #endif /* UPG_DEFAULT_CONFIG_H */