From: Thomas Lamprecht Date: Sat, 20 May 2023 19:25:34 +0000 (+0200) Subject: buildsys: derive upload dist automatically X-Git-Url: https://git.proxmox.com/?p=pve-kernel.git;a=commitdiff_plain;h=6d345395f30909b4d9e97079c9ae1f3a096c9da9;hp=9374c298289add01f5e83a4ba20a4d5301389720 buildsys: derive upload dist automatically Signed-off-by: Thomas Lamprecht --- diff --git a/Makefile b/Makefile index 1edfbda..19c5821 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +include /usr/share/dpkg/pkg-info.mk + # also bump pve-kernel-meta if either of MAJ.MIN, PATCHLEVEL or KREL change KERNEL_MAJ=6 KERNEL_MIN=2 @@ -116,8 +118,9 @@ $(ZFSDIR).prepared: $(ZFSONLINUX_SUBMODULE) touch $(ZFSDIR).prepared .PHONY: upload +upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) upload: $(DEBS) - tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye --arch $(ARCH) + tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST) --arch $(ARCH) .PHONY: distclean distclean: clean