This mainly moves scattered similar code that was already sourcing profile files to own script, so it can be re-used elsewhere. Change-Id: I11677226370fc52f50292d70c62cae5bd7c58d19 Reviewed-by: Dimitrios Apostolou <jimis@qt.io>