diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-04-24 14:26:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-15 18:12:46 +0100 |
commit | f4b1bcbc38d5c02f62472476953ea8e874101a45 (patch) | |
tree | a7c976d702ed23935ad7b1c99ef4e861312e5b3c | |
parent | 605e8fad88d8d32110c65749eb50d5f92ad16fd9 (diff) | |
download | poky-f4b1bcbc38d5c02f62472476953ea8e874101a45.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)
(From OE-Core rev: 7c0c2b3037dfc2790446968572daf5bf0a17e2f8)
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.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() { | |||
94 | 94 | ||
95 | bb.build.exec_func("tar_sdk", d) | 95 | bb.build.exec_func("tar_sdk", d) |
96 | 96 | ||
97 | bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d) | 97 | sdk_packaging_func = d.getVar("SDK_PACKAGING_FUNC", True) or "" |
98 | if sdk_packaging_func.strip(): | ||
99 | bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d) | ||
98 | } | 100 | } |
99 | 101 | ||
100 | fakeroot create_sdk_files() { | 102 | fakeroot create_sdk_files() { |