init: allow update to defined yocto release

Update via ./init.sh will now clone and update to defined and testet
yocto release.
A general update is disabled with variable $YOCTO_LAYER_DO_UPDATE=0
Reason: yocto recomends not to modify any parts of the yocto repositories. becaus all
Local changes can be done in your local layers e.g. with bbappend files.
see also: https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files

Another point is, the defined relase version is tested and should working
with our build.
This commit is contained in:
2021-04-22 11:03:41 +02:00
parent eacce3ecf2
commit 09538c7a69
2 changed files with 43 additions and 21 deletions

View File

@@ -111,7 +111,9 @@ or in the dist directory:
```
## Update the meta layer repositories
Execution of init script will update the meta layers. Of corse you can update your meta-layer repositories manually.
Execution of init script will update the yocto poky-x.x repository to the required yocto release and will updating the included local meta layers to current
state of remote repositories. Of corse you can update and modyify your local meta-layer for meta-neutrino and machine layers repositories manually. The update routines will stash uncommitted changes or will rebase your local commits to new remote changes, but conflicts are possible. In this case you must solve manually.
Please do not modify the Yocto-sources! This is not recommended by the Yocto-Team. Do it only if you know what you do!
Note: Your config files will be untouched. New or adapted config options are not considered. Please check your configuration if required.