1 /* 2 * Copyright (C) 2015-2019 Alibaba Group Holding Limited 3 */ 4 5 #ifndef APP_UPGRADE_H 6 #define APP_UPGRADE_H 7 8 #include <stdint.h> 9 10 #define AMP_OTA_MODULE_NAME "pyapp" 11 12 #define SUBDEV_FILE_PATH AMP_FS_ROOT_DIR "/pack.bin" 13 #define JS_JSON_PATH AMP_FS_ROOT_DIR "/py.json" 14 #define OS_APP_PATH AMP_FS_ROOT_DIR "/app.zip" 15 #define OS_KERNEL_PATH AMP_FS_ROOT_DIR "/os_kernel.bin" 16 17 int ota_load_pyapp(void *ota_ctx); 18 int32_t amp_app_upgrade_service(void *mqtt_handle); 19 void internal_sys_upgrade_start(void *ctx); 20 int ota_install_pyapp(void *ota_ctx, char *store_file, int store_file_len, char *install_path); 21 int install_pyapp(char *store_file, char *install_path); 22 23 #endif /* APP_UPGRADE_H */ 24