diff options
author | André Draszik <andre.draszik@jci.com> | 2018-02-23 14:50:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-03 17:08:28 +0000 |
commit | 7620dafe7358f017a8cd558b480af73896768f04 (patch) | |
tree | c9ed53939ebb4980c470d1c3bb6ec529a83f8900 /scripts/lib/checklayer | |
parent | a7b0f7605f62420d7c9b9d5ef2e03c5cc5c81d03 (diff) | |
download | openembedded-core-7620dafe7358f017a8cd558b480af73896768f04.tar.gz openembedded-core-7620dafe7358f017a8cd558b480af73896768f04.tar.bz2 openembedded-core-7620dafe7358f017a8cd558b480af73896768f04.zip |
cmake: refactor compile and install for easier re-use
cmake_do_compile() and cmake_do_install() basically do the
same, except they use a different --target, and at the
moment this is copy/pasted code with a minor modification.
Other recipes which e.g. might want to support compilation
as part of ptest have to do the same. This is a bit
inconvenient.
By factoring out all of this into a common helper,
cmake_runcmake_build(), this is easily re-used. An
(imaginary) recipe can compile ptest support simply by
using
cmake_runcmake_build --target buildtest-TESTS
(assuming such a build target exists).
Also, this now is very similar to oe_runmake().
Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/checklayer')
0 files changed, 0 insertions, 0 deletions