Description:add dsoftbus kernel driver module

Feature or Bugfix:Feature
Binary Source: No

Signed-off-by: fanxiaoyu <fanxiaoyu3@huawei.com>
This commit is contained in:
fanxiaoyu
2021-09-06 01:17:06 +00:00
parent 409a4dab64
commit 25453b4128
4 changed files with 63 additions and 0 deletions
+1
View File
@@ -25,3 +25,4 @@ source "drivers/hdf/khdf/model/usb/host/Kconfig"
source "drivers/hdf/khdf/model/usb/device/Kconfig"
source "drivers/hdf/khdf/model/audio/Kconfig"
source "drivers/hdf/khdf/model/misc/vibrator/Kconfig"
source "drivers/hdf/khdf/model/misc/dsoftbus/Kconfig"
+1
View File
@@ -50,3 +50,4 @@ obj-$(CONFIG_DRIVERS_HDF_STORAGE) += model/storage/
obj-$(CONFIG_DRIVERS_HDF_BT) += model/network/bluetooth/
obj-$(CONFIG_DRIVERS_HDF_VIBRATOR) += model/misc/vibrator/
obj-$(CONFIG_DRIVERS_HDF_AUDIO) += model/audio/
obj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += model/misc/dsoftbus/
+24
View File
@@ -0,0 +1,24 @@
# Copyright (c) 2021 Huawei Device Co., Ltd.
#
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
config DRIVERS_HDF_DSOFTBUS
bool "Enable HDF dsoftbus driver"
default n
depends on DRIVERS_HDF
help
control HDF dsoftbus driver capability.
config DSOFTBUS_WLAN_PARAM_MONITOR
bool "enable dsoftbus wlan parameter monitor"
default n
depends on DRIVERS_HDF_DSOFTBUS
help
control hdf dsoftbus wlan parameter monitor capability.
+37
View File
@@ -0,0 +1,37 @@
#
# Copyright (c) 2021 Huawei Device Co., Ltd.
#
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
DSOFTBUS_ROOT_DIR = ../../../../../../framework/model/misc/dsoftbus
obj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += \
$(DSOFTBUS_ROOT_DIR)/src/hdf_dsoftbus_driver.o \
$(DSOFTBUS_ROOT_DIR)/src/module_manager.o
ifeq ($(CONFIG_DSOFTBUS_WLAN_PARAM_MONITOR), y)
obj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += $(DSOFTBUS_ROOT_DIR)/src/wlan_param_monitor.o
ccflags-$(CONFIG_DRIVERS_HDF_DSOFTBUS) +=-DENABLE_WLAN_PARAM_MONITOR
endif
ccflags-y += -Iinclude/../drivers/hdf/framework/model/misc/dsoftbus/include \
-Iinclude/../drivers/hdf/framework/core/common/include/host \
-Iinclude/../drivers/hdf/framework/include/core \
-Iinclude/../drivers/hdf/framework/include/osal \
-Iinclude/../drivers/hdf/framework/include/utils \
-Iinclude/../drivers/hdf/framework/ability/sbuf/include \
-Iinclude/../drivers/hdf/framework/include/platform \
-Iinclude/../drivers/hdf/framework/include/config \
-Iinclude/../drivers/hdf/framework/core/host/include \
-Iinclude/../drivers/hdf/framework/core/shared/include \
-Iinclude/../drivers/hdf/framework/utils/include \
-Iinclude/../drivers/hdf/khdf/osal/include \
-I$(PROJECT_ROOT)/third_party/bounds_checking_function/include