Note that the recipe specific STATIC_ANALYSIS_ENABLE variable is set to
'1' or '0' depending on enable/disable and hence the check should be
done accordingly.
Without this fix, recipes in STATIC_ANALYSIS_DISABLE_RECIPE gets enabled
for static analysis

Signed-off-by: Sam Nelson <[email protected]>
---
 classes/static-analysis.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/static-analysis.bbclass b/classes/static-analysis.bbclass
index 3903639..5e532c1 100644
--- a/classes/static-analysis.bbclass
+++ b/classes/static-analysis.bbclass
@@ -99,7 +99,7 @@ static_analysis_postbuild[dirs] += 
"${STATIC_ANALYSIS_POSTBUILD_DIRS}"
 #  calling this script with the static analysis command.
 #
 def static_analysis_compile_wrapper(d):
-    if (d.getVar('STATIC_ANALYSIS_ENABLE', True)):
+    if ((d.getVar('STATIC_ANALYSIS_ENABLE', True)) == '1'):
         cwd = None
 
         # Make a copy of do_compile
-- 
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to