[yocto] [yocto-autobuilder][PATCH] forcebuild: allow build with default options
Jose Lamego
jose.a.lamego at linux.intel.com
Thu Jun 1 10:32:52 PDT 2017
From: Anibal Limon <anibal.limon at linux.intel.com>
A forced build fails if no options are passed through command
line (using "-o OPTIONS").
This change allows build to use default options if none are passed
at the command line.
Signed-off-by: Jose Lamego <jose.a.lamego at linux.intel.com>
---
bin/forcebuild.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bin/forcebuild.py b/bin/forcebuild.py
index 5fe61a0..e6770a4 100755
--- a/bin/forcebuild.py
+++ b/bin/forcebuild.py
@@ -108,7 +108,11 @@ class YoctoAutobuilderAPI(object):
% (builder, state))
return 1
- opts = eval(opts) # FIXME: transform string argument into dictionary, security?
+ if opts:
+ # FIXME: transform string argument into dictionary, security?
+ opts = eval(opts)
+ else:
+ opts = {}
current_opts = self._get_options_by_builder(builder)
for opt in opts:
if not opt in current_opts:
--
2.7.4
More information about the yocto
mailing list