diff --git a/Kconfig b/Kconfig old mode 100644 new mode 100755 index 037b190fb2a2bee3bc2025fc9c8955bed9306823..02505ff52edc1f30b5ec593b88dd6f3bd1ea8c53 --- 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 old mode 100644 new mode 100755 index 33c8c23cdb6740b9d25cabb9e5ac0d7135931fb0..54d967bb5490470a4df8da45021e75ef51147f3a --- 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 0000000000000000000000000000000000000000..6efafa27074f786edb10aa6799c1abb5b52bc67e --- /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 0000000000000000000000000000000000000000..3983bcc0fb6148ef50a67f87aea02c70d49b1450 --- /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