BuildImages.py: core-image-basic name change support
PATCH 1/1 BuildImages.py: core-image-basic name change support
Supports http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b7f1cca517bbd4191828c6bae32e0c5041f1ff19
Signed-off-by Elizabeth Flanagan <[email protected]>
--- .../site-packages/autobuilder/buildsteps/BuildImages.py | 9 +++++++++ 1 file changed, 9 insertions(+)
lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py +9 -0
@@ -34,7 +34,16 @@ class BuildImages(ShellCommand): def start(self): self.layerversion_yoctobsp = self.getProperty("layerversion_yoctobsp") + self.layerversion_core = self.getProperty("layerversion_core") self.machine = self.getProperty("MACHINE") + # core-image-basic rename + # See: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b7f1cca517bbd4191828c6bae32e0c5041f1ff19 + # I hate making people change their configs, so support both. + if self.layerversion_core < "4": + self.images.replace("core-image-full-cmdline", "core-image-basic") + elif self.layerversion_core > "3": + self.images.replace("core-image-basic", "core-image-full-cmdline") + if self.layerversion_yoctobsp is not None and int(self.layerversion_yoctobsp) < 2 and self.machine is not None and self.machine == "genericx86-64": self.command = "echo 'Skipping Step.'" else:
Signature · 1 line
1.8.1.2
ignore this. updated patch in the works.
Quoted 31 lines · Elizabeth Flanagan
Supports http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b7f1cca517bbd4191828c6bae32e0c5041f1ff19
Signed-off-by Elizabeth Flanagan <[email protected]>--- .../site-packages/autobuilder/buildsteps/BuildImages.py | 9 +++++++++ 1 file changed, 9 insertions(+)lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py +9
-1@@ -34,7 +34,16 @@ class BuildImages(ShellCommand): def start(self): self.layerversion_yoctobsp = self.getProperty("layerversion_yoctobsp") + self.layerversion_core = self.getProperty("layerversion_core") self.machine = self.getProperty("MACHINE") + # core-image-basic rename + # See: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b7f1cca517bbd4191828c6bae32e0c5041f1ff19 + # I hate making people change their configs, so support both. + if self.layerversion_core < "4": + self.images.replace("core-image-full-cmdline", "core-image-basic") + elif self.layerversion_core > "3": + self.images.replace("core-image-basic", "core-image-full-cmdline") + if self.layerversion_yoctobsp is not None and int(self.layerversion_yoctobsp) < 2 and self.machine is not None and self.machine == "genericx86-64": self.command = "echo 'Skipping Step.'" else: --1.8.1.2
Signature · 3 lines
Elizabeth Flanagan Yocto Project Build and Release