Discussion:
Duplicating a build configuration
(too old to reply)
Edward Wingate
2018-12-07 00:23:41 UTC
Permalink
I have configured Yocto to build a jethro distribution that I've been
using for the past 3 years. I want to duplicate this configuration on
another computer as a backup build machine. I could just copy over
the poky directory and all my layers, but I think this would copy over
unnecessary files (build/tmp, old build artifacts?).

What would be the best way to make this backup computer be capable of
generating the same distribution? Some of my layers are on the jethro
branch, and others on the master branch. Should I just configure from
scratch (git clone all the layers, set all the right branches)? Or is
there a better way? Could/should I reuse the download mirror or the
sstate cache on the original machine?

Thanks for your help/suggestions.

Ed
--
Georgi Georgiev
2018-12-07 12:16:42 UTC
Permalink
Hi Edward,
As a non yocto professional I will answer :-)
The answer is yes to all questions. So it is up to you. Copying .git directories will copy also the repos.
Build/tmp is a subject to deletion on my setup on a regular time basis. Sstate-cache will be good to keep it but...it this will be nonworking machine you can delete it also...And don't forget to setup cron or another command scheduler to pull the changes you commit from working machine to the backup one.
I hope this will help :-)
Cordially

-----Original Message-----
From: yocto-***@yoctoproject.org [mailto:yocto-***@yoctoproject.org] On Behalf Of Edward Wingate
Sent: Friday, December 07, 2018 2:24 AM
To: ***@yoctoproject.org
Subject: [EXTERNAL] [yocto] Duplicating a build configuration

I have configured Yocto to build a jethro distribution that I've been using for the past 3 years. I want to duplicate this configuration on another computer as a backup build machine. I could just copy over the poky directory and all my layers, but I think this would copy over unnecessary files (build/tmp, old build artifacts?).

What would be the best way to make this backup computer be capable of generating the same distribution? Some of my layers are on the jethro branch, and others on the master branch. Should I just configure from scratch (git clone all the layers, set all the right branches)? Or is there a better way? Could/should I reuse the download mirror or the sstate cache on the original machine?

Thanks for your help/suggestions.

Ed
--
_______________________________________________
yocto mailing list
***@yoctoproject.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_listinfo_yocto&d=DwICAg&c=y6L7g950KfMp92YmLM0QlMdXcRn6b-Cq4AApnSJOenE&r=kHtJrQGzfH1ZmfsNkJpYuH-jtNpv8yMDkqAmsRP99mc&m=ozCxgLVznssI_3a4uv4AkI3pZTvN0peKDZA7cFi1GeM&s=scAexL7SDJB057jqphUz9lfOMGs1mGAXG-8ktRwclqo&e=

***
The information in this email is confidential and intended solely for the individual or entity to whom it is addressed.  If you have received this email in error please notify the sender by return e-mail, delete this email, and refrain from any disclosure or action based on the information.
***
--

Loading...