This commit adds component validation checks for cmakev2. The file component_validation.cmake is ported to cmakev2 and updated to work in the buildv2 environment.