Migrate from Legato 18.09.0 to 19.02.0

Are you using Leaf?
We found a bug where in 19.02 we introduced kconfig into the framework and changed some of the environment variables.
It will be fixed with Legato 19.04 and the next version of Leaf.

For now you need to manually source in config.sh into your environment.

Step one:
Run make “target” within the Legato directory
This generates the kconfig files that are needed.

Step two:
source $LEGATO_ROOT/build/“target”/config.sh into your environment aka leaf shell.

you should then be able to run mksys. It’s happening because in the default.sdef (the file that builds the legato framework) we have added environment variables that are generated by kconfig.

You will have to source the config.sh everytime you enter the leaf shell for now.

If it’s still failing, make sure you delete your _build directory before you try mksys again, that should fix it up.

The patches to fix this bug are in testing and should be out soon.

If you are not using leaf you need to make sure that you run either
/bin/legs or source the configlegatoenv into your bashrc so that it will find all the kconfig variables.

Note that if you change the framework settings by using kconfig you will need to resource the config.sh file to pick up any of the changes. (either by using leaf or not).