]> code.ossystems Code Review - openembedded-core.git/commit
ccmake.bbclass: Create a cml1 style class for the CMake curses UI
authorNathan Rossi <nathan@nathanrossi.com>
Wed, 3 Apr 2019 05:37:02 +0000 (05:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Apr 2019 16:33:01 +0000 (17:33 +0100)
commit091c46a8ecba6b6b7c44078ae2b567a2ef6e72e9
tree2713b41f3351b7fbf1a0d8294bc8fcc5897da1fe
parenta8397def4eebacb8876d021129309a6903b71b2f
ccmake.bbclass: Create a cml1 style class for the CMake curses UI

The ccmake bbclass implements two tasks. The first task 'ccmake'
preserves the configured state of CMakeCache.txt (generated from the
configure task) and invokes the 'ccmake' program within a oe_terminal
execution. The user can then review, select and modify configuration
options and once satisfied with the configuration exit ccmake. Once
ccmake has exited the build can be run and the updated configuration
should be reflected in the output build.

The ccmake bbclass has a second task 'ccmake_diffconfig' to compute the
differences in configuration which was modified by ccmake. Since there
are many ways to persist the configuration changes within recipes and
layer configuration, the differences are emitted as a bitbake recipe
fragment (configuration.inc) using EXTRA_OECMAKE as well as a CMake
script file which can be used as a input to cmake via the '-C' argument.
Both files are generated in the WORKDIR of the build and the paths to
the files are written as output from the build. It is then up to the
user to take this configuration and apply it to the desired location.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/ccmake.bbclass [new file with mode: 0644]