From 0600bdc3350aad271a33481d0f3367c5c5c25123 Mon Sep 17 00:00:00 2001 From: Eduardo Montoya Date: Mon, 30 Sep 2024 15:35:15 +0200 Subject: [PATCH] Add basic structure Signed-off-by: Eduardo Montoya --- .gitignore | 15 +++++++++++++++ CMakeLists.txt | 8 ++++++++ CODEOWNERS | 1 + Kconfig | 9 +++++++++ LICENSE | 40 ++++++++++++++++++++++++++++++++++++++++ west.yml | 14 ++++++++++++++ zephyr/module.yml | 11 +++++++++++ 7 files changed, 98 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 CODEOWNERS create mode 100644 Kconfig create mode 100644 LICENSE create mode 100644 west.yml create mode 100644 zephyr/module.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1236044 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# editors +.vscode +*.swp +*~ + +# python +.venv +__pycache__/ + +# build +/build* +/twister-out* + +# docs +/doc/_build* \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4bfb883 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +# Copyright (c) 2024 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). + +add_subdirectory(lib) +add_subdirectory(subsys) \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..f0174c8 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +@ncs-zigbee \ No newline at end of file diff --git a/Kconfig b/Kconfig new file mode 100644 index 0000000..ec8d686 --- /dev/null +++ b/Kconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2024 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 "lib/Kconfig" +rsource "subsys/Kconfig" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f2e8ae4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,40 @@ +LicenseID: LicenseRef-Nordic-5-Clause + +ExtractedText: +Copyright (c) 2024, Nordic Semiconductor ASA + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form, except as embedded into a Nordic + Semiconductor ASA integrated circuit in a product or a software update for + such product, must reproduce the above copyright notice, this list of + conditions and the following disclaimer in the documentation and/or other + materials provided with the distribution. + +3. Neither the name of Nordic Semiconductor ASA nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +4. This software, with or without modification, must only be used with a + Nordic Semiconductor ASA integrated circuit. + +5. Any software provided in binary form under this license must not be reverse + engineered, decompiled, modified and/or disassembled. + +THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + \ No newline at end of file diff --git a/west.yml b/west.yml new file mode 100644 index 0000000..c409b55 --- /dev/null +++ b/west.yml @@ -0,0 +1,14 @@ +# Copyright (c) 2024 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +manifest: + remotes: + - name: ncs + url-base: https://github.com/nrfconnect + + projects: + - name: nrf + remote: ncs + repo-path: sdk-nrf + revision: v2.8.0 + import: true diff --git a/zephyr/module.yml b/zephyr/module.yml new file mode 100644 index 0000000..47a7abc --- /dev/null +++ b/zephyr/module.yml @@ -0,0 +1,11 @@ +# Copyright (c) 2024 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +build: + # Path to the Kconfig file that will be sourced into Zephyr Kconfig tree under + # Zephyr > Modules > sdk-zigbee. 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: .