From: Chen Qi Date: Fri, 24 Apr 2015 06:26:54 +0000 (+0800) Subject: populate_sdk_base: avoid executing empty function X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2FChenQi%2Funinative-tarball-fixes;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 5c0769373a0..7f7a87fdd20 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() {