Git Product home page Git Product logo

kconfig-samples's Introduction

======================================================================================
= Sample project ilustrating how to create configurable builds using Kconfig/Kbuild. 
=
= David Corvoysier copyright Intel 2015
======================================================================================

The build can be configured to compile only some modules under the src directory.
The configuration rules are recursively defined in Kconfig files using the Kconfig
syntax:
    https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt

Creating the build configuration requires Kconfig's mconf and conf tools, available
for instance from the kconfig-frontends package:
    http://ymorin.is-a-geek.org/projects/kconfig-frontends  

Once a configuration has been defined, the build applies it using rules defined in
recursive Kbuild.mk makefiles, following the Linux kernel convention for files and
directories selection, and conditioned by the configuration:
    obj-${CONFIG_FOO} += foo.o
    obj-${CONFIG_BAR} += bar/

The project build tree can be extended by specifying an additional external path to
explore when parsing the configuration. At this path, the build system expects a
valid Kconfig/Kbuild.mk pair (see the example under external/sample).

Note: you need to use an absolute path. 

============
How to build
============

Without external services:

make menuconfig
make config
make

With external services:

EXTERNAL_SERVICES=/path/to/ext make menuconfig
EXTERNAL_SERVICES=/path/to/ext make config
make

For instance:

EXTERNAL_SERVICES=$(pwd)/external/sample make menuconfig
EXTERNAL_SERVICES=$(pwd)/external/sample make config
make

kconfig-samples's People

Contributors

dacorvo avatar

Stargazers

Kermit Liu avatar Easion avatar Janusz Jankowski avatar

Watchers

James Cloos avatar  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.