!489 add syscap lib for mini and small system

Merge pull request !489 from peitaiyi/master
This commit is contained in:
openharmony_ci 2022-04-12 01:10:28 +00:00 committed by Gitee
commit 0d45e81c88
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 54 additions and 21 deletions

View File

@ -0,0 +1,36 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
config("syscap_config") {
include_dirs = [ "../include" ]
}
ohos_shared_library("syscap") {
sources = [ "init_syscap.c" ]
include_dirs = [
"../include",
"../../../services/include/param",
]
deps = [
"../../../services/log:init_log",
"../../../services/param:param_client",
"//third_party/bounds_checking_function:libsec_shared",
]
public_configs = [ ":syscap_config" ]
part_name = "init"
install_images = [ "system" ]
}

8
services/param/BUILD.gn Normal file → Executable file
View File

@ -115,10 +115,10 @@ ohos_shared_library("param_client") {
}
}
deps = [
"//base/startup/init_lite/services/log:agent_log",
"//third_party/bounds_checking_function:libsec_static",
]
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
if (is_standard_system) {
deps += [ "//base/startup/init_lite/services/log:agent_log" ]
}
install_images = [
"system",
"updater",

31
services/utils/BUILD.gn Normal file → Executable file
View File

@ -10,6 +10,20 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
ohos_static_library("libinit_utils") {
sources = [ "init_utils.c" ]
include_dirs = [
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/include",
]
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
if (defined(ohos_lite)) {
static_library("libinit_tools") {
@ -29,8 +43,6 @@ if (defined(ohos_lite)) {
defines = [ "_GNU_SOURCE" ]
}
} else {
import("//build/ohos.gni")
ohos_static_library("libinit_tools") {
sources = [
"//base/startup/init_lite/services/utils/init_hashmap.c",
@ -48,19 +60,4 @@ if (defined(ohos_lite)) {
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
ohos_static_library("libinit_utils") {
sources = [ "init_utils.c" ]
include_dirs = [
"//third_party/bounds_checking_function/include",
"//base/startup/init_lite/services/log",
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/include",
]
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
}