summaryrefslogtreecommitdiffstats
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:14:38 +0100
commit2f78aebed25e6394c18eeed2ec840d01d4787e96 (patch)
tree3a9786db69d3296d59522c868d4aa4af960d2b32
parent2d74cb4934f0e81cb0475fbadf91b96c903b295e (diff)
downloadpoky-2f78aebed25e6394c18eeed2ec840d01d4787e96.tar.gz
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] (From OE-Core rev: 4c0ae7cce06de15f6881654ecec7f8bb743ff389) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() {
96 96
97 bb.build.exec_func("tar_sdk", d) 97 bb.build.exec_func("tar_sdk", d)
98 98
99 bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d) 99 sdk_packaging_func = d.getVar("SDK_PACKAGING_FUNC", True) or ""
100 if sdk_packaging_func.strip():
101 bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
100} 102}
101 103
102fakeroot create_sdk_files() { 104fakeroot create_sdk_files() {