From 6b8c96c93965cd74f6a07ca521d8f5544c8b8ca6 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 3 Jul 2025 03:32:56 -0500 Subject: [PATCH] Allow setting the URL for config.sub Unfortunately the Savannah server can be a bit flaky. Move the config URL to a variable so it can be set to point to a mirror. Signed-off-by: Trevor Gross --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1f4aaea5..534eb302 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ MUSL_REPO = https://git.musl-libc.org/git/musl LINUX_SITE = https://cdn.kernel.org/pub/linux/kernel LINUX_HEADERS_SITE = https://ftp.barfooze.de/pub/sabotage/tarballs/ +CONFIG_SUB_URL = "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=$(CONFIG_SUB_REV)" + DL_CMD = wget -c -O SHA1_CMD = sha1sum -c @@ -76,7 +78,7 @@ $(SOURCES): $(SOURCES)/config.sub: | $(SOURCES) mkdir -p $@.tmp - cd $@.tmp && $(DL_CMD) $(notdir $@) "https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=$(CONFIG_SUB_REV)" + cd $@.tmp && $(DL_CMD) $(notdir $@) $(CONFIG_SUB_URL) cd $@.tmp && touch $(notdir $@) cd $@.tmp && $(SHA1_CMD) $(CURDIR)/hashes/$(notdir $@).$(CONFIG_SUB_REV).sha1 mv $@.tmp/$(notdir $@) $@