aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-sato
diff options
context:
space:
mode:
authorAdeel Arshad <adeel_arshad@mentor.com>2016-12-06 12:16:32 +0500
committerAdeel Arshad <adeel_arshad@mentor.com>2016-12-06 12:27:33 +0500
commitad181b28bc3fdab5e1355c863531d1bc6c964084 (patch)
tree280c81646f4d1670d34a21480abb90182867df62 /common/recipes-sato
parente720769b60fc01e3ef96ba7203d157c112235269 (diff)
downloadmeta-amd-ad181b28bc3fdab5e1355c863531d1bc6c964084.tar.gz
meta-amd-ad181b28bc3fdab5e1355c863531d1bc6c964084.tar.bz2
meta-amd-ad181b28bc3fdab5e1355c863531d1bc6c964084.zip
core-image-sato: replace bb.utils.to_boolean with bb.utils.contains
bb.utils.to_boolean generates the parsing error when the variable it is evaluating is not defined, so replace it with bb.utils.contains which handles this case correctly. Signed-off-by: Adeel Arshad <adeel_arshad@mentor.com>
Diffstat (limited to 'common/recipes-sato')
-rw-r--r--common/recipes-sato/images/core-image-sato.bbappend4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/recipes-sato/images/core-image-sato.bbappend b/common/recipes-sato/images/core-image-sato.bbappend
index 0f626879..dd7ff4df 100644
--- a/common/recipes-sato/images/core-image-sato.bbappend
+++ b/common/recipes-sato/images/core-image-sato.bbappend
@@ -6,6 +6,6 @@ IMAGE_INSTALL_append_radeon = " mesa-demos"
VULKAN_COMPONENTS_amdfalconx86 = "glslang spirv-tools vulkan-loader-layers vulkan-tools vulkan-samples"
CODEXL_COMPONENTS = "codexl codexl-examples"
-IMAGE_INSTALL_append = "${@' ${VULKAN_COMPONENTS}' if bb.utils.to_boolean('${INCLUDE_VULKAN}') else ''} \
- ${@' ${CODEXL_COMPONENTS}' if bb.utils.to_boolean('${INCLUDE_CODEXL}') else ''} \
+IMAGE_INSTALL_append = "${@bb.utils.contains("INCLUDE_VULKAN", "yes", " ${VULKAN_COMPONENTS}", "", d)} \
+ ${@bb.utils.contains("INCLUDE_CODEXL", "yes", " ${CODEXL_COMPONENTS}", "", d)} \
"