All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-processor-sdk][master] PATCH] static-analysis: Fix error in handling static analysis enable
@ 2019-01-24 11:23 Sam Nelson
  0 siblings, 0 replies; only message in thread
From: Sam Nelson @ 2019-01-24 11:23 UTC (permalink / raw)
  To: meta-arago, m-radhakrishnan2

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 <sam.nelson@ti.com>
---
 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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-24 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 11:23 [meta-processor-sdk][master] PATCH] static-analysis: Fix error in handling static analysis enable Sam Nelson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.