• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3#
4# This software is licensed under the terms of the GNU General Public
5# License version 2, as published by the Free Software Foundation, and
6# may be copied, distributed, and modified under those terms.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13#
14
15OHOS_SOURCE_ROOT := ../../../../../../
16HDF_FRAMEWORK_SRC_DIR := ../../../../
17
18SEC_LIB_SOURCES = memcpy_s.c memmove_s.c memset_s.c securecutil.c secureinput_a.c secureprintoutput_a.c snprintf_s.c \
19                  sprintf_s.c strcat_s.c strcpy_s.c strncat_s.c strncpy_s.c strtok_s.c  vsnprintf_s.c vsprintf_s.c
20SEC_FUNCTION_OBJECTS := $(patsubst %.c,%.o,$(SEC_LIB_SOURCES))
21SEC_FUNCTION_OBJECTS := $(addprefix $(OHOS_SOURCE_ROOT)/third_party/bounds_checking_function/src/,${SEC_FUNCTION_OBJECTS})
22
23obj-y += \
24        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_cstring.o \
25        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_slist.o \
26        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_sref.o \
27        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_map.o \
28        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_sbuf.o \
29        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_sbuf_impl_raw.o \
30        $(HDF_FRAMEWORK_SRC_DIR)/framework/utils/src/hdf_task_queue.o \
31        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/devhost_service.o \
32        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/devmgr_service_clnt.o \
33        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/devsvc_manager_clnt.o \
34        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_device.o \
35        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_device_node.o \
36        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_device_token.o \
37        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_driver_loader.o \
38        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_observer_record.o \
39        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_service_subscriber.o \
40        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_device_object.o \
41        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_power_manager.o \
42        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/hdf_service_observer.o \
43        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/host/src/power_state_token.o \
44        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/devhost_service_clnt.o \
45        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/device_token_clnt.o \
46        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/devmgr_service.o \
47        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/devsvc_manager.o \
48        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/devsvc_manager_ext.o \
49        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/servstat_listener_holder.o \
50        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/hdf_driver_installer.o \
51        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/hdf_host_info.o \
52        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/power_state_token_clnt.o \
53        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/manager/src/driver_manager.o \
54        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/shared/src/hdf_service_record.o \
55        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/shared/src/hdf_device_info.o \
56        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/shared/src/hdf_object_manager.o \
57        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/shared/src/hdf_io_service.o \
58        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/shared/src/service_status.o \
59        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/common/src/devlite_object_config.o \
60        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/common/src/hdf_attribute.o \
61        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/common/src/devmgr_service_start.o \
62        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/common/src/hdf_device_node_ext.o \
63        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/common/src/buildin_config_entry.o \
64        $(HDF_FRAMEWORK_SRC_DIR)/framework/core/adapter/vnode/src/hdf_vnode_adapter.o \
65        ./src/devmgr_load.o \
66        ./src/devmgr_pm_reg.o \
67        ./src/sym_export.o \
68        ./src/hdf_kevent.o \
69        $(SEC_FUNCTION_OBJECTS)
70
71ccflags-y += \
72       -I$(srctree)/drivers/hdf/framework/include \
73       -I$(srctree)/drivers/hdf/framework/include/osal \
74       -I$(srctree)/drivers/hdf/framework/include/utils \
75       -I$(srctree)/drivers/hdf/framework/include \
76       -I$(srctree)/drivers/hdf/framework/utils/include \
77       -I$(srctree)/drivers/hdf/framework/include/core \
78       -I$(srctree)/drivers/hdf/framework/core/host/include \
79       -I$(srctree)/drivers/hdf/framework/core/manager/include \
80       -I$(srctree)/drivers/hdf/framework/core/shared/include \
81       -I$(srctree)/drivers/hdf/framework/core/common/include/host \
82       -I$(srctree)/drivers/hdf/framework/core/common/include/manager \
83       -I$(srctree)/drivers/hdf/framework/core/adapter/vnode/include \
84       -I$(srctree)/drivers/hdf/framework/include/config \
85       -I$(srctree)/drivers/hdf/inner_api/osal/shared \
86       -I$(srctree)/drivers/hdf/inner_api/host/shared \
87       -I$(srctree)/drivers/hdf/inner_api/utils \
88       -I$(srctree)/drivers/hdf/inner_api/core \
89       -I$(srctree)/drivers/hdf/khdf/osal/include \
90       -I$(srctree)/include/uapi/linux \
91       -I$(srctree)/bounds_checking_function/include
92