fix path stuff and kconfig references

This commit is contained in:
2025-05-31 01:35:23 -06:00
parent 6cd0752294
commit 631bfe2a26
5 changed files with 23 additions and 6 deletions

15
firmware/CMakeLists.txt Normal file
View File

@ -0,0 +1,15 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
#
# This CMake file is picked by the Zephyr build system because it is defined
# as the module CMake entry point (see zephyr/module.yml).
# This is needed so that custom driver classes using system calls are taken into
# account
zephyr_syscall_include_directories(include)
zephyr_include_directories(include)
add_subdirectory(drivers)
add_subdirectory(lib)

9
firmware/Kconfig Normal file
View File

@ -0,0 +1,9 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
#
# This Kconfig file is picked by the Zephyr build system because it is defined
# as the module Kconfig entry point (see zephyr/module.yml). You can browse
# module options by going to Zephyr -> Modules in Kconfig.
rsource "drivers/Kconfig"
rsource "lib/Kconfig"

View File

@ -0,0 +1,17 @@
build:
# Path to the Kconfig file that will be sourced into Zephyr Kconfig tree under
# Zephyr > Modules > example-application. Path is relative from root of this
# repository.
kconfig: Kconfig
# Path to the folder that contains the CMakeLists.txt file to be included by
# Zephyr build system. The `.` is the root of this repository.
cmake: .
settings:
# Additional roots for boards and DTS files. Zephyr will use the
# `<board_root>/boards` for additional boards. The `.` is the root of this
# repository.
board_root: .
# Zephyr will use the `<dts_root>/dts` for additional dts files and
# `<dts_root>/dts/bindings` for additional dts binding files. The `.` is
# the root of this repository.
dts_root: .