summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-04-24 14:26:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-24 11:09:19 +0100
commit4c0ae7cce06de15f6881654ecec7f8bb743ff389 (patch)
treef7920fb3aad22fcf0b7f689e06bf78283971e437 /meta
parent8f905077aaed3dbeeed04787add1cf725fa87bdc (diff)
downloadopenembedded-core-4c0ae7cce06de15f6881654ecec7f8bb743ff389.tar.gz
openembedded-core-4c0ae7cce06de15f6881654ecec7f8bb743ff389.tar.bz2
openembedded-core-4c0ae7cce06de15f6881654ecec7f8bb743ff389.zip
populate_sdk_base: avoid executing empty function
`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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/populate_sdk_base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 13a0b1fdee..54b9af5bb7 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -96,7 +96,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() {