build: make git sub-modules to fetch configurable

Currently the git protocol downloads all submodules of the target
repository. This can be unwieldy for repositories with a lot of submodules
where only a subset are required in the context of the OpenWrt build.

This change adds a PKG_SOURCE_SUBMODULES variable to configure this
behavior. It takes a space-separated list of submodule paths, or the word
"skip" to disable submodule downloads entirely. The default is to download
all submodules, i.e. preserving current behavior.

Signed-off-by: Karsten Sperling <ksperling@apple.com>
This commit is contained in:
Karsten Sperling 2023-03-16 14:17:26 +13:00 committed by Petr Štetiar
parent edd146c920
commit 350d9a3462
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3
2 changed files with 9 additions and 2 deletions