diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-04-24 14:26:54 +0800 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2015-04-24 17:07:45 +0800 |
commit | 9b6b3e5914719a413c54490623c3760a8dacc737 (patch) | |
tree | 98c63ae7db92423a7aae88bad1b2054e3605458a | |
parent | db6c1f96c80a967b314cd1d1a671044c249e7777 (diff) | |
download | openembedded-core-contrib-ChenQi/uninative-tarball-fixes.tar.gz |
populate_sdk_base: avoid executing empty functionChenQi/uninative-tarball-fixes
`bitbake uninative-tarball' raises the following warning.
WARNING: Function doesn't exist
This is because SDK_PACKAGING_FUNC is set to "" in its recipe.
Anyway, we need to check this variable to avoid executing empty function.
[YOCTO #7598]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 5c0769373a..7f7a87fdd2 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass @@ -94,7 +94,9 @@ fakeroot python do_populate_sdk() { bb.build.exec_func("tar_sdk", d) - bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d) + sdk_packaging_func = d.getVar("SDK_PACKAGING_FUNC", True) or "" + if sdk_packaging_func.strip(): + bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d) } fakeroot create_sdk_files() { |