Explorar o código

Makefile: add option to set mirror across build

Michael Aldridge %!s(int64=7) %!d(string=hai) anos
pai
achega
5791d18d31
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      Makefile

+ 4 - 2
Makefile

@@ -22,6 +22,8 @@ ALL_CLOUD_IMAGES=$(foreach cloud,$(CLOUD_IMGS),void-$(cloud)-$(DATE).tar.gz)
 
 SUDO := sudo
 
+XBPS_REPOSITORY := -r https://lug.utdallas.edu/mirror/void/current -r https://lug.utdallas.edu/mirror/void/current/musl -r https://lug.utdallas.edu/mirror/void/current/aarch64
+
 %.sh: %.sh.in
 	 sed -e "s|@@MKLIVE_VERSION@@|$(VERSION) $(GITVER)|g" $^ > $@
 	 chmod +x $@
@@ -43,10 +45,10 @@ rootfs-all-print:
 	echo $(ALL_ROOTFS)
 
 void-%-ROOTFS-$(DATE).tar.xz: $(SCRIPTS)
-	$(SUDO) ./mkrootfs.sh $*
+	$(SUDO) ./mkrootfs.sh $(XBPS_REPOSITORY) $*
 
 void-%-PLATFORMFS-$(DATE).tar.xz: $(SCRIPTS)
-	$(SUDO) ./mkplatformfs.sh $* void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz
+	$(SUDO) ./mkplatformfs.sh $(XBPS_REPOSITORY) $* void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz
 
 platformfs-all: rootfs-all $(ALL_PLATFORMFS)