]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_base: avoid executing empty function
authorChen Qi <Qi.Chen@windriver.com>
Fri, 24 Apr 2015 06:26:54 +0000 (14:26 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Apr 2015 10:09:19 +0000 (11:09 +0100)
`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>
meta/classes/populate_sdk_base.bbclass

index 13a0b1fdee1decc67b3ef35deb887ee5c419f541..54b9af5bb72cd7d7105761296d3b5a5418c11e5d 100644 (file)
@@ -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() {