scripts/envsetup.sh and TEMPLATECONF locations refactoring
Description
Environment
Activity
Jan-Simon Moeller July 10, 2016 at 11:49 AM
Closing.
Jan-Simon Moeller July 10, 2016 at 11:48 AM
Resolved. We're good to go.
Kudos to Stephane!
Stephane Desneux July 6, 2016 at 6:44 PM
Migration done.
@Jan-Simon Moeller: if CI jobs work correctly, I believe we can close this one ! Well done !
Stephane Desneux July 5, 2016 at 10:29 AM
Updated all meta repositories to support new method:
meta-renesas: https://gerrit.automotivelinux.org/gerrit/6025
meta-agl-demo: https://gerrit.automotivelinux.org/gerrit/6027
meta-agl-extra: https://gerrit.automotivelinux.org/gerrit/6031
Stephane Desneux June 30, 2016 at 10:42 AM
Actions taken:
@Jan-Simon Moeller proposed a first refactoring which uses conditional inclusion of layers and fragments of configuration in templates
that proposal was discussed during dev meeting: see Meeting notes for June 28: @Tadao Tanikawa and @Mikhail Durnev pointed that having code in configuration files may lead to unexpected results. Also the ordering of the layers was pointed as one potential issue.
@Stephane Desneux made a second proposal on the mailing list see this thread This proposal is also based on fragments, but there's no more conditionals in config files: everything is assembled before with a new script named 'aglsetup' which replaces the current 'envsetup' script.
this second proposal gets positive reviews and there are a few minor issues to solve
the current state is available here (WIP):
meta-agl: branch sandbox/sdesneux/aglextra2
meta-agl-extra: branch sandbox/sdesneux/aglextra2
Current situation:
scripts/envsetup.sh
looks up
meta-agl
and
meta-agl-demo
for TEMPLATE files (per board).
So we have 2 places to take care of (based on minimal or graphical build).
Refactor it to simplify the script and keep data in just one location.