mirror of
https://github.com/openharmony/update_ota_lite.git
synced 2026-07-01 20:44:00 -04:00
Signed-off-by: wangjiadong <wangjiadong14@huawei.com>
change ota_lite to sys_install_lite
This commit is contained in:
@@ -13,7 +13,7 @@ Over the Air \(OTA\) provides the remote device update capability. Your devices
|
||||
## Directory Structure<a name="section1464106163817"></a>
|
||||
|
||||
```
|
||||
/base/update/ota_lite
|
||||
/base/update/sys_installer_lite
|
||||
.
|
||||
├── frameworks # OTA update implementation, including update package parsing, verification, writing, and updating
|
||||
│ ├── source # updater module source code
|
||||
@@ -55,11 +55,11 @@ Add the dependency on the update subsystem. The following uses the Hi3516D V300
|
||||
"description": "",
|
||||
"optional": "false",
|
||||
"dirs": [
|
||||
"base/update/ota_lite/frameworks",
|
||||
"base/update/ota_lite/interfaces/kits"
|
||||
"base/update/sys_installer_lite/frameworks",
|
||||
"base/update/sys_installer_lite/interfaces/kits"
|
||||
],
|
||||
"targets": [
|
||||
"//base/update/ota_lite/frameworks:ota_lite"
|
||||
"//base/update/sys_installer_lite/frameworks:sys_installer_lite"
|
||||
],
|
||||
...
|
||||
```
|
||||
|
||||
+7
-7
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@ohos/update_ota_lite",
|
||||
"name": "@ohos/update_sys_installer_lite",
|
||||
"version": "3.1",
|
||||
"description": "为轻量级设备提供升级写入相关的api",
|
||||
"homePage": "https://gitee.com/openharmony",
|
||||
"license": "Apache License 2.0",
|
||||
"repository": "https://gitee.com/openharmony/update_ota_lite",
|
||||
"repository": "https://gitee.com/openharmony/update_sys_installer_lite",
|
||||
"domain": "os",
|
||||
"language": "",
|
||||
"publishAs": "code-segment",
|
||||
@@ -33,10 +33,10 @@
|
||||
}
|
||||
],
|
||||
"segment": {
|
||||
"destPath": "base/update/ota_lite"
|
||||
"destPath": "base/update/sys_installer_lite"
|
||||
},
|
||||
"component": {
|
||||
"name": "ota_lite",
|
||||
"name": "sys_installer_lite",
|
||||
"subsystem": "updater",
|
||||
"syscap": [
|
||||
"SystemCapability.Updater.Raw"
|
||||
@@ -60,17 +60,17 @@
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [
|
||||
"//base/update/ota_lite/frameworks:ota_lite"
|
||||
"//base/update/sys_installer_lite/frameworks:sys_installer_lite"
|
||||
],
|
||||
"inner_kits": [
|
||||
{
|
||||
"name": "//base/update/ota_lite/frameworks:update_api",
|
||||
"name": "//base/update/sys_installer_lite/frameworks:update_api",
|
||||
"header": {
|
||||
"header_files": [
|
||||
"hota_partition.h",
|
||||
"hota_updater.h"
|
||||
],
|
||||
"header_base": "//base/update/ota_lite/interfaces/kits"
|
||||
"header_base": "//base/update/sys_installer_lite/interfaces/kits"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+4
-4
@@ -15,19 +15,19 @@ import("//build/lite/config/component/lite_component.gni")
|
||||
import("//build/lite/config/test.gni")
|
||||
import("//build/lite/ndk/ndk.gni")
|
||||
|
||||
lite_component("ota_lite") {
|
||||
features = [ "//base/update/ota_lite/frameworks/source:hota" ]
|
||||
lite_component("sys_installer_lite") {
|
||||
features = [ "//base/update/sys_installer_lite/frameworks/source:hota" ]
|
||||
}
|
||||
|
||||
ndk_lib("update_api") {
|
||||
deps = []
|
||||
head_files = [ "//base/update/ota_lite/interfaces/kits/" ]
|
||||
head_files = [ "//base/update/sys_installer_lite/interfaces/kits/" ]
|
||||
}
|
||||
|
||||
subsystem_test("test") {
|
||||
test_components = []
|
||||
if (ohos_kernel_type != "liteos_m") {
|
||||
test_components +=
|
||||
[ "//base/update/ota_lite/frameworks/test/unittest/common:update_test" ]
|
||||
[ "//base/update/sys_installer_lite/frameworks/test/unittest/common:update_test" ]
|
||||
}
|
||||
}
|
||||
|
||||
+16
-16
@@ -14,16 +14,16 @@
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
static_library("hota") {
|
||||
sources = [
|
||||
"//base/update/ota_lite/frameworks/source/updater/hota_updater.c",
|
||||
"//base/update/ota_lite/frameworks/source/verify/app_rsa.c",
|
||||
"//base/update/ota_lite/frameworks/source/verify/app_sha256.c",
|
||||
"//base/update/ota_lite/frameworks/source/verify/hota_verify.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/updater/hota_updater.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify/app_rsa.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify/app_sha256.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify/hota_verify.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//base/update/ota_lite/interfaces/kits",
|
||||
"//base/update/ota_lite/hals",
|
||||
"//base/update/ota_lite/frameworks/test/dload",
|
||||
"//base/update/ota_lite/frameworks/source/verify",
|
||||
"//base/update/sys_installer_lite/interfaces/kits",
|
||||
"//base/update/sys_installer_lite/hals",
|
||||
"//base/update/sys_installer_lite/frameworks/test/dload",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify",
|
||||
"//commonlibrary/utils_lite/include",
|
||||
"//kernel/liteos_m/kal/cmsis",
|
||||
"//base/startup/init/interfaces/innerkits/include/syspara",
|
||||
@@ -38,16 +38,16 @@ if (ohos_kernel_type == "liteos_m") {
|
||||
} else {
|
||||
shared_library("hota") {
|
||||
sources = [
|
||||
"//base/update/ota_lite/frameworks/source/updater/hota_updater.c",
|
||||
"//base/update/ota_lite/frameworks/source/verify/app_rsa.c",
|
||||
"//base/update/ota_lite/frameworks/source/verify/app_sha256.c",
|
||||
"//base/update/ota_lite/frameworks/source/verify/hota_verify.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/updater/hota_updater.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify/app_rsa.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify/app_sha256.c",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify/hota_verify.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//base/update/ota_lite/interfaces/kits",
|
||||
"//base/update/ota_lite/hals",
|
||||
"//base/update/ota_lite/frameworks/test/dload",
|
||||
"//base/update/ota_lite/frameworks/source/verify",
|
||||
"//base/update/sys_installer_lite/interfaces/kits",
|
||||
"//base/update/sys_installer_lite/hals",
|
||||
"//base/update/sys_installer_lite/frameworks/test/dload",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify",
|
||||
"//commonlibrary/utils_lite/include",
|
||||
"//kernel/liteos_m/kal/cmsis",
|
||||
"//base/startup/init/interfaces/innerkits/include/syspara",
|
||||
|
||||
@@ -17,10 +17,10 @@ unittest("update_test") {
|
||||
output_extension = "bin"
|
||||
sources = [ "src/ota_test.cpp" ]
|
||||
include_dirs = [
|
||||
"//base/update/ota_lite/frameworks/source/verify",
|
||||
"//base/update/ota_lite/interfaces/kits",
|
||||
"//base/update/ota_lite/frameworks/include",
|
||||
"//base/update/ota_lite/hals",
|
||||
"//base/update/sys_installer_lite/frameworks/source/verify",
|
||||
"//base/update/sys_installer_lite/interfaces/kits",
|
||||
"//base/update/sys_installer_lite/frameworks/include",
|
||||
"//base/update/sys_installer_lite/hals",
|
||||
"//commonlibrary/utils_liteos/include",
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//kernel/liteos-a/compat/linux/include",
|
||||
@@ -28,7 +28,7 @@ unittest("update_test") {
|
||||
"//kernel/liteos-a/lib/libsec/include",
|
||||
]
|
||||
deps = [
|
||||
"//base/update/ota_lite/frameworks/source:hota",
|
||||
"//base/update/sys_installer_lite/frameworks/source:hota",
|
||||
"//third_party/bounds_checking_function:libsec_shared",
|
||||
"//third_party/mbedtls:mbedtls_static",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user