[SRCREV][SETUP-ENVIRONMENT] copy SRCREV.conf from custom layer if present
If there's a custom layer and it contains a conf/SRCREV.conf
file, copy that file
instead of the one in the machine/architecture layers.
Also refactor some code.
As of 8 April 2024, the git.seco.com instance was upgraded to the Premium version. External users and SECO customers who need access to private groups or repositories can make a request by contacting SECO support team via the ticketing platform (https://support.seco.com/).
If there's a custom layer and it contains a conf/SRCREV.conf
file, copy that file
instead of the one in the machine/architecture layers.
Also refactor some code.