From 432f35dba993860042d5fd7682bd1a47c4af64a5 Mon Sep 17 00:00:00 2001 From: xwbmcu Date: Tue, 11 Jan 2022 00:35:18 +0800 Subject: [PATCH] feat : Add the Light function module Signed-off-by: xwbmcu --- Makefile | 1 + model/misc/light/Kconfig | 17 +++++++++++++++++ model/misc/light/Makefile | 31 +++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100755 model/misc/light/Kconfig create mode 100755 model/misc/light/Makefile diff --git a/Makefile b/Makefile index a6da633..6e60305 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,7 @@ obj-$(CONFIG_DRIVERS_HDF_USB_F_GENERIC) += model/usb/device/ obj-$(CONFIG_DRIVERS_HDF_SENSOR) += model/sensor/ obj-$(CONFIG_DRIVERS_HDF_STORAGE) += model/storage/ obj-$(CONFIG_DRIVERS_HDF_BT) += model/network/bluetooth/ +obj-$(CONFIG_DRIVERS_HDF_LIGHT) += model/misc/light/ obj-$(CONFIG_DRIVERS_HDF_VIBRATOR) += model/misc/vibrator/ obj-$(CONFIG_DRIVERS_HDF_AUDIO) += model/audio/ obj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += model/misc/dsoftbus/ diff --git a/model/misc/light/Kconfig b/model/misc/light/Kconfig new file mode 100755 index 0000000..b03ec30 --- /dev/null +++ b/model/misc/light/Kconfig @@ -0,0 +1,17 @@ +# Copyright (c) 2022 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_LIGHT + bool "Enable HDF light driver" + default n + depends on DRIVERS_HDF + help + Answer Y to enable HDF light driver. \ No newline at end of file diff --git a/model/misc/light/Makefile b/model/misc/light/Makefile new file mode 100755 index 0000000..5184979 --- /dev/null +++ b/model/misc/light/Makefile @@ -0,0 +1,31 @@ +# +# Copyright (c) 2022 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. +# +# + +LIGHT_ROOT_DIR = ../../../../../../framework/model/misc/light/driver + +obj-$(CONFIG_DRIVERS_HDF_LIGHT) += \ + $(LIGHT_ROOT_DIR)/src/light_driver.o + +ccflags-y +=-I$(srctree)/drivers/hdf/framework/model/misc/light/driver/include \ + -I$(srctree)/drivers/hdf/framework/include/core \ + -I$(srctree)/drivers/hdf/framework/core/common/include/host \ + -I$(srctree)/drivers/hdf/framework/include/utils \ + -I$(srctree)/drivers/hdf/framework/include/osal \ + -I$(srctree)/drivers/hdf/framework/include/platform \ + -I$(srctree)/drivers/hdf/framework/include/config \ + -I$(srctree)/drivers/hdf/framework/core/host/include \ + -I$(srctree)/drivers/hdf/framework/core/shared/include \ + -I$(srctree)/drivers/hdf/framework/utils/include \ + -I$(srctree)/drivers/hdf/khdf/osal/include \ + -I$(srctree)/bounds_checking_function/include