From 0d22e6b8aed18a81f2249376f6d78e2de8d25348 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 2 Dec 2019 17:22:18 +0100 Subject: Don't hardcode architecture list in the Makefile Move it to config.json instead and grab it from there. --- lib/debian-releases.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/debian-releases.mk b/lib/debian-releases.mk index c868d6edfd..d09ac33be0 100644 --- a/lib/debian-releases.mk +++ b/lib/debian-releases.mk @@ -1,6 +1,10 @@ # This file defines the variables describing all Debian repositories # that need to be fetched in the "update-packages" process +define get_config = +$(shell jq -r $(1) 'data/config.json') +endef + # backports suites only have Sources.xz and respective Packages.xz # available. # Cf. as well https://bugs.debian.org/664866 @@ -12,7 +16,7 @@ MAIN_RELEASES := $(SECURITY_RELEASES) sid define add_main_release = $(1)_MIRROR = $$(MIRROR) $(1)_DIST = $(1) -$(1)_ARCHS ?= amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x +$(1)_ARCHS = $(call get_config, '.distributions.$(1).architectures[]') $(1)_RELEASE = $(1) $(1)_SUBRELEASE = RELEASES += $(1) -- cgit v1.2.3