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 for product. 15 */ 16 #ifndef UPG_PRODUCT_CONFIG_H 17 #define UPG_PRODUCT_CONFIG_H 18 19 #ifdef YES 20 #undef YES 21 #endif 22 #define YES 1 23 24 #ifdef NO 25 #undef NO 26 #endif 27 #define NO 0 28 29 #define UPG_CFG_DEBUG_ENABLED YES 30 #define UPG_CFG_DEBUG_PRINT_ENABLED YES 31 #define UPG_CFG_DIRECT_FLASH_ACCESS YES 32 #define UPG_CFG_PROCESS_NOTIFY_SUPPORT YES 33 #ifndef UPG_CFG_VERIFICATION_SUPPORT 34 #define UPG_CFG_VERIFICATION_SUPPORT YES 35 #endif 36 #define UPG_CFG_INTEGRITY_VERIFICATION_ONLY NO 37 #define UPG_CFG_VERIFICATION_MODE_RSA NO 38 #define UPG_CFG_VERIFICATION_MODE_ECC YES 39 #define UPG_CFG_VERIFICATION_MODE_SM2_SM3 NO 40 #define UPG_CFG_VERIFICATION_MODE_SM3_ONLY NO 41 #define UPG_CFG_VERIFICATION_MODE_SHA256_ONLY NO 42 #define UPG_CFG_VERIFICATION_MODE_SW_HASH NO 43 #define UPG_CFG_NV_UPGRADE_SUPPORT NO 44 #define UPG_CFG_DIFF_UPGRADE_SUPPORT NO 45 #define UPG_CFG_IMGAE_DECRYPT_SUPPORT NO 46 #define UPG_CFG_PROGRESS_RECOVERY_SUPPORT YES 47 #define UPG_CFG_ANTI_ROLLBACK_SUPPORT NO 48 #define UPG_CFG_HASH_VERIFY_SUPPORT NO 49 #define UPG_CFG_SIGNATURE_VERIFY_SUPPORT NO 50 #define UPG_CFG_SUPPORT_FILE_SYSTEM NO 51 #define UPG_CFG_MEMORY_DCACHE_ENABLED NO 52 #define UPG_CFG_SUPPORT_IMAGE_ON_FILE_SYSTEM NO 53 #define UPG_CFG_SUPPORT_RESOURCES_FILE NO 54 #define UPG_CFG_SUPPORT_ERASE_WHOLE_IMAGE YES 55 56 #include "upg_default_config.h" 57 #endif /* UPG_PRODUCT_CONFIG_H */ 58