1c1d0c72aSopenharmony_ci# 2c1d0c72aSopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd. 3c1d0c72aSopenharmony_ci# 4c1d0c72aSopenharmony_ci# This software is licensed under the terms of the GNU General Public 5c1d0c72aSopenharmony_ci# License version 2, as published by the Free Software Foundation, and 6c1d0c72aSopenharmony_ci# may be copied, distributed, and modified under those terms. 7c1d0c72aSopenharmony_ci# 8c1d0c72aSopenharmony_ci# This program is distributed in the hope that it will be useful, 9c1d0c72aSopenharmony_ci# but WITHOUT ANY WARRANTY; without even the implied warranty of 10c1d0c72aSopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11c1d0c72aSopenharmony_ci# GNU General Public License for more details. 12c1d0c72aSopenharmony_ci# 13c1d0c72aSopenharmony_ci# 14c1d0c72aSopenharmony_ciCURRENT_DIR := $(abspath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))) 15c1d0c72aSopenharmony_ci 16c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF) += osal/ 17c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF) += utils/ 18c1d0c72aSopenharmony_ci 19c1d0c72aSopenharmony_ci$(warning PRODUCT_PATH=$(PRODUCT_PATH)) 20c1d0c72aSopenharmony_ciifeq ($(PRODUCT_PATH),) 21c1d0c72aSopenharmony_ci$(error PRODUCT_PATH is not set) 22c1d0c72aSopenharmony_ciendif 23c1d0c72aSopenharmony_ci 24c1d0c72aSopenharmony_ciHCS_DIR := ../../../../../$(PRODUCT_PATH)/hdf_config/khdf 25c1d0c72aSopenharmony_ciifeq ($(wildcard $(CURRENT_DIR)/$(HCS_DIR)),) 26c1d0c72aSopenharmony_ciHCS_DIR := ../../../../../$(PRODUCT_PATH)/hdf_config 27c1d0c72aSopenharmony_ciendif 28c1d0c72aSopenharmony_ci 29c1d0c72aSopenharmony_ciifeq ($(CONFIG_DRIVERS_HDF), y) 30c1d0c72aSopenharmony_ciifeq ($(wildcard $(CURRENT_DIR)/$(HCS_DIR)),) 31c1d0c72aSopenharmony_ciHCS_ABS_DIR := $(abspath $(CURRENT_DIR)/$(HCS_DIR)) 32c1d0c72aSopenharmony_ci$(error miss hcs config in $(HCS_ABS_DIR) for small system\ 33c1d0c72aSopenharmony_ci or $(HCS_ABS_DIR)/khdf for standrad system) 34c1d0c72aSopenharmony_ciendif 35c1d0c72aSopenharmony_ci 36c1d0c72aSopenharmony_ciifeq ($(CONFIG_DRIVERS_HDF_TEST), y) 37c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_TEST) += test/ 38c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_TEST) += $(HCS_DIR)/hdf_test/ 39c1d0c72aSopenharmony_cielse 40c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF) += $(HCS_DIR)/ 41c1d0c72aSopenharmony_ciendif 42c1d0c72aSopenharmony_ciendif 43c1d0c72aSopenharmony_ci 44c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF) += manager/ 45c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_PLATFORM) += platform/ 46c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_DISP) += model/display/ 47c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_INPUT) += model/input/ 48c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_WIFI) += model/network/wifi/ 49c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_USB_PNP_NOTIFY) += model/usb/host/ 50c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_SENSOR) += model/sensor/ 51c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_STORAGE) += model/storage/ 52c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_BT) += model/network/bluetooth/ 53c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_LIGHT) += model/misc/light/ 54c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_VIBRATOR) += model/misc/vibrator/ 55c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_AUDIO) += model/audio/ 56c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += model/misc/dsoftbus/ 57c1d0c72aSopenharmony_ciobj-$(CONFIG_DRIVERS_HDF_NETWORK) += network/ 58