diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2019-06-18 11:41:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-19 12:46:44 +0100 |
commit | 6bb0cf46a1262ada4773990dd5ac4b66ceae6c9d (patch) | |
tree | ebc3e7522a71928832ff23a9f79f677c2fa432cf /meta/classes | |
parent | 2cc0c08f80cff87cc541008ce2309c357752bea7 (diff) | |
download | poky-6bb0cf46a1262ada4773990dd5ac4b66ceae6c9d.tar.gz |
base.bbclass: define PACKAGECONFIG_CONFARGS before only sometimes appending to it
* just to make sure it's expaned by bitbake before it gets
executed in shell
* e.g. with cmake.bbclass and cmake recipe (any recipe without
PACKAGECONFIG options have this issue) it looks like this:
bitbake -e cmake | grep EXTRA_OECMAKE=
EXTRA_OECMAKE=" -DCMAKE_DOC_DIR=share/doc/cmake-3.14
-DCMAKE_USE_SYSTEM_LIBRARIES=1 -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0
-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0
-DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 -DKWSYS_CHAR_IS_SIGNED=1
-DBUILD_CursesDialog=0 -DKWSYS_LFS_WORKS=1
\${PACKAGECONFIG_CONFARGS}"
(From OE-Core rev: 745b63f4e11a6536cabd97013973562631a0e080)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 90af8ba72b..0c8a4b2862 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -15,6 +15,8 @@ OE_EXTRA_IMPORTS ?= "" | |||
15 | OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license ${OE_EXTRA_IMPORTS}" | 15 | OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license ${OE_EXTRA_IMPORTS}" |
16 | OE_IMPORTS[type] = "list" | 16 | OE_IMPORTS[type] = "list" |
17 | 17 | ||
18 | PACKAGECONFIG_CONFARGS ??= "" | ||
19 | |||
18 | def oe_import(d): | 20 | def oe_import(d): |
19 | import sys | 21 | import sys |
20 | 22 | ||