[yocto] [[PATCHv2][yocto-autobuilder] 1/2] buildsteps/CreateAutoConf.py: Add support for specify MACHINE by build prop
Aníbal Limón
anibal.limon at linux.intel.com
Thu Jan 19 07:49:09 PST 2017
Sometimes is a good idea to could specify a machine to build via a build
property/web interface input.
Without this patch if you specify the machine via a build property/web
interface input, the machine is overwrite taking only into account the
default machine set in the buildset.
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
.../site-packages/autobuilder/buildsteps/CreateAutoConf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
index 021f542..7915dd5 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py
@@ -174,7 +174,11 @@ class CreateAutoConf(ShellCommand):
fout = fout + 'baselib = \\042${@d.getVar(\\047BASE_LIB_tune-\\047 + (d.getVar(\\047DEFAULTTUNE\\047, True) or \\047INVALID\\047), True) or \\047lib\\047}\\042 \n'
if self.distro == "poky-rt":
fout = fout + 'PREFERRED_PROVIDER_virtual/kernel="linux-yocto-rt" \n'
- machine=self.machine
+ machine=self.getProperty('custom_machine')
+ if machine:
+ self.machine = machine
+ else:
+ machine = self.machine
if layerversion is not None and int(layerversion) > 1:
if self.machine == "atom-pc":
machine = self.machine.replace("atom-pc", "genericx86")
--
2.1.4
More information about the yocto
mailing list