diff --git a/libretro-fetch.sh b/libretro-fetch.sh index 31c91dea..ef252ab4 100755 --- a/libretro-fetch.sh +++ b/libretro-fetch.sh @@ -78,7 +78,7 @@ libretro_fetch() { for (( i=0; i < $num_git_urls; ++i )); do eval "git_url=\$libretro_${1}_mgit_url_$i" eval "git_subdir=\$libretro_${1}_mgit_dir_$i" - eval "git_submodules=\$libretro_${1}_mgit_dir_$i" + eval "git_submodules=\$libretro_${1}_mgit_submodules_$i" fetch_git "$git_url" "$module_dir/$git_subdir" "$git_submodules" done ;; diff --git a/rules.d/core-rules.sh b/rules.d/core-rules.sh index 0c2d1e59..407a56bc 100644 --- a/rules.d/core-rules.sh +++ b/rules.d/core-rules.sh @@ -278,6 +278,8 @@ libretro_fuse_build_platform="$FORMAT_COMPILER_TARGET_ALT" # fetch_rule Name of the core's fetch rule # Currently "git" (default) or "multi_git" # +# For the "git" fetch rule: +# # git_url Source to fetch via git # REQUIRED for fetch actions # @@ -287,6 +289,18 @@ libretro_fuse_build_platform="$FORMAT_COMPILER_TARGET_ALT" # build_subdir Subdir containing the libretro makefile # Leave unset if in top level of core # +# For the "multi_git" fetch rule: +# +# mgit_urls Number of URLs to fetch +# +# mgit_url_ th URL to fetch, start with 0 +# If you have 4 mgit_urls, will be 0, 1, 2, or 3 +# +# mgit_dir_ th directory to fetch into +# You must set this for each URL +# +# For the generic makefile build rule: +# # build_makefile Name of makefile # If unset, GNU make has rules for default makefile names #