From 85331cad82b336ecb2bba8636d31a15a7489b5ec Mon Sep 17 00:00:00 2001 From: qtpl456 Date: Tue, 29 Mar 2022 17:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E7=A8=8B=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qtpl456 --- Kconfig | 1 + Makefile | 1 + model/gnss/Kconfig | 13 +++++++++++++ model/gnss/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100755 model/gnss/Kconfig create mode 100755 model/gnss/Makefile diff --git a/Kconfig b/Kconfig index 037b190..02505ff 100644 --- a/Kconfig +++ b/Kconfig @@ -24,5 +24,6 @@ source "drivers/hdf/khdf/model/storage/Kconfig" 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/gnss/Kconfig" source "drivers/hdf/khdf/model/misc/vibrator/Kconfig" source "drivers/hdf/khdf/model/misc/dsoftbus/Kconfig" \ No newline at end of file diff --git a/Makefile b/Makefile index 33c8c23..54d967b 100644 --- a/Makefile +++ b/Makefile @@ -50,4 +50,5 @@ 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_GNSS) += model/gnss/ obj-$(CONFIG_DRIVERS_HDF_DSOFTBUS) += model/misc/dsoftbus/ diff --git a/model/gnss/Kconfig b/model/gnss/Kconfig new file mode 100755 index 0000000..6efafa2 --- /dev/null +++ b/model/gnss/Kconfig @@ -0,0 +1,13 @@ +config DRIVERS_HDF_GNSS + bool "Enable HDF GNSS driver" + default y + depends on DRIVERS_HDF + help + Answer Y to choice HDF GNSS driver. + +config DRIVERS_HDF_GNSS_TEST + bool "Enable HDF GNSS driver Test" + default n + depends on DRIVERS_HDF_GNSS + help + Answer Y to choice HDF gnss driver Test. diff --git a/model/gnss/Makefile b/model/gnss/Makefile new file mode 100755 index 0000000..3983bcc --- /dev/null +++ b/model/gnss/Makefile @@ -0,0 +1,36 @@ +# Copyright (C) 2021 HiHope Open Source Organization. +# 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. + +KHDF_GNSS_KHDF_ROOT_DIR = drivers/hdf/khdf +KHDF_FRAMEWORK_ROOT_DIR = drivers/hdf/framework +KHDF_GNSS_ROOT_DIR = ../../../../../framework/model/gnss + +obj-$(CONFIG_DRIVERS_HDF_GNSS) += \ + $(KHDF_GNSS_ROOT_DIR)/control/src/gnss_contorl.o \ + $(KHDF_GNSS_ROOT_DIR)/stream/src/gnss_stream.o \ + $(KHDF_GNSS_ROOT_DIR)/gnss_drivers/src/gnss_driver.o \ + $(KHDF_GNSS_ROOT_DIR)/gnss_drivers/src/gnss_config_parse.o + +ccflags-$(CONFIG_DRIVERS_HDF_GNSS) += -lm -lc -lgcc -std=gnu99 -Werror \ + -I$(srctree)/$(KHDF_GNSS_KHDF_ROOT_DIR)/osal/include \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/include/core \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/include/utils \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/include/osal \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/include/platform \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/include/config \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/ability/sbuf/include \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/core/common/include/host \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/gnss/gnss_drivers/include \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/gnss/control/include \ + -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/gnss/stream/include \ + -I$(PROJECT_ROOT)/third_party/bounds_checking_function/include -- Gitee