Coder Social home page Coder Social logo

batto1 / kconfig-and-cmakelists-nested-folder-use-and-custom-kconfig-configurations Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

Zephyr sample for working with KConfig and CMakeLists with nested files and custom Kconfig configurations.

CMake 33.94% C 66.06%

kconfig-and-cmakelists-nested-folder-use-and-custom-kconfig-configurations's Introduction

Zephyr sample for working with KConfig and CMakeLists

This repository contains a dummy example of Zephyr RTOS platform to simply showcase how KConfig and CMakeLists files can be used for building the codebase existing in nested files. KConfig and CMakeLists help integrating configuration options both for the build process and the application's utilization.

You can check out the following Zephyr application template that I made where this structure is utilized as well as some other useful techniques.

Implemented Personal Approach On Involving Subfolders/Submodules Into The Project

Dummy module file given inside the nested file (at app/example_module) self configures itself in the build process when some other upper level Kconfig and CMakeLists point to the module file to use its own Kconfig and CMakeLists files. This approach is taken beacuse it feels more intuitive that each module/submodule/driver/library etc. takes care of itself after its folder is decided to be included in the codebase in some other configuration file that's upper level on the folder tree (hierarchical) structure.

Building and running

  • nRF Connect SDK is used when building and is application is run with nRF52840DK board. SDK and Toolchain version used: 2.6.0
  • Should be able to be built without nRF Connect SDK and with Zephyr only. Other supported boards can be used, too. Further explanation in repository given in References section can be used for further detail.

References

kconfig-and-cmakelists-nested-folder-use-and-custom-kconfig-configurations's People

Contributors

batto1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.