From ecf7b6eb9a519e5c404f14ad94bd4304bc411813 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 20 May 2023 17:32:24 +0200 Subject: [PATCH] buildsys: add DSC target Signed-off-by: Thomas Lamprecht --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a3be32e..3252378 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ MODULE_DIRS=$(ZFSDIR) # exported to debian/rules via debian/rules.d/dirs.mk DIRS=KERNEL_SRC ZFSDIR MODULES +DSC=pve-kernel_$(KERNEL_VER)-$(PKGREL).dsc DST_DEB=$(PACKAGE)_$(KERNEL_VER)-$(PKGREL)_$(ARCH).deb HDR_DEB=$(HDRPACKAGE)_$(KERNEL_VER)-$(PKGREL)_$(ARCH).deb USR_HDR_DEB=pve-kernel-libc-dev_$(KERNEL_VER)-$(PKGREL)_$(ARCH).deb @@ -62,6 +63,11 @@ $(DST_DEB): $(BUILD_DIR).prepared #lintian $(HDR_DEB) lintian $(LINUX_TOOLS_DEB) +dsc: $(DSC) +$(DSC): $(BUILD_DIR).prepared + cd $(BUILD_DIR); dpkg-buildpackage -S -uc -us -d + lintian $(DSC) + $(BUILD_DIR).prepared: $(addsuffix .prepared,$(KERNEL_SRC) $(MODULES) debian) cp -a fwlist-previous $(BUILD_DIR)/ cp -a abi-prev-* $(BUILD_DIR)/ @@ -147,5 +153,5 @@ abi-tmp-$(KVNAME): .PHONY: clean clean: - rm -rf *~ $(PACKAGE)*/ *.prepared $(KERNEL_CFG_ORG) - rm -f *.deb *.changes *.buildinfo + rm -rf *~ pve-kernel-[0-9]*/ *.prepared $(KERNEL_CFG_ORG) + rm -f *.deb *.dsc *.changes *.buildinfo *.build pve-kernel*.tar.*