Starting from slapos.recipe.build@5e95d882 gitclone should have built-in support for submodules. Credit: Kirill.