To enable GNSS/GPS support. Using modules as this
should not be needed to mount rootfs.

Signed-off-by: Mikko Rapeli <[email protected]>
---
 features/gnss/gnss.cfg | 4 ++++
 features/gnss/gnss.scc | 5 +++++
 kern-features.rc       | 1 +
 3 files changed, 10 insertions(+)
 create mode 100644 features/gnss/gnss.cfg
 create mode 100644 features/gnss/gnss.scc

diff --git a/features/gnss/gnss.cfg b/features/gnss/gnss.cfg
new file mode 100644
index 000000000000..c050e231e0f8
--- /dev/null
+++ b/features/gnss/gnss.cfg
@@ -0,0 +1,4 @@
+CONFIG_GNSS=m
+CONFIG_GNSS_SERIAL=m
+CONFIG_GNSS_MTK_SERIAL=m
+CONFIG_GNSS_USB=m
diff --git a/features/gnss/gnss.scc b/features/gnss/gnss.scc
new file mode 100644
index 000000000000..3e6581a30833
--- /dev/null
+++ b/features/gnss/gnss.scc
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "Enable GNSS support"
+define KFEATURE_COMPATIBILITY board
+
+kconf hardware gnss.cfg
diff --git a/kern-features.rc b/kern-features.rc
index fbd4216b66f7..d9ccaf9c5096 100644
--- a/kern-features.rc
+++ b/kern-features.rc
@@ -299,6 +299,7 @@
        config = features/ciphers/ciphers.scc
        config = features/x2apic/x2apic.scc
        config = features/uio/uio.scc
+       config = features/gnss/gnss.scc
        config = bsp/xilinx/board-common.scc
        config = 
bsp/xilinx/kc705-microblazeel-features/kc705-microblazeel-features.scc
        config = bsp/xilinx/soc/zynq.scc
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16126): 
https://lists.yoctoproject.org/g/linux-yocto/message/16126
Mute This Topic: https://lists.yoctoproject.org/mt/117176738/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to