]> git.proxmox.com Git - pve-kernel.git/blobdiff - Makefile
update ABI file for 6.5.11-2-pve
[pve-kernel.git] / Makefile
index 01fb40c23546d69d85e21741451c680e7714a408..a79a7180f4b9ea2aff257cd4a8578afef16d2331 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,11 @@ include /usr/share/dpkg/pkg-info.mk
 
 # also bump proxmox-kernel-meta if the default MAJ.MIN version changes!
 KERNEL_MAJ=6
-KERNEL_MIN=2
-KERNEL_PATCHLEVEL=16
+KERNEL_MIN=5
+KERNEL_PATCHLEVEL=11
 # increment KREL for every published package release!
 # rebuild packages with new KREL and run 'make abiupdate'
-KREL=9
+KREL=2
 
 KERNEL_MAJMIN=$(KERNEL_MAJ).$(KERNEL_MIN)
 KERNEL_VER=$(KERNEL_MAJMIN).$(KERNEL_PATCHLEVEL)
@@ -25,8 +25,6 @@ ifneq ($(ARCH), amd64)
 KERNEL_ARCH=$(ARCH)
 endif
 
-GITVERSION:=$(shell git rev-parse HEAD)
-
 SKIPABI=0
 
 BUILD_DIR=proxmox-kernel-$(KERNEL_VER)
@@ -81,11 +79,18 @@ $(BUILD_DIR).prepared: $(addsuffix .prepared,$(KERNEL_SRC) $(MODULES) debian)
        cp -a abi-blacklist $(BUILD_DIR)/
        touch $@
 
+.PHONY: build-dir-fresh
+build-dir-fresh:
+       $(MAKE) clean
+       $(MAKE) $(BUILD_DIR).prepared
+       echo "created build-directory: $(BUILD_DIR).prepared/"
+
 debian.prepared: debian
        rm -rf $(BUILD_DIR)/debian
        mkdir -p $(BUILD_DIR)
        cp -a debian $(BUILD_DIR)/debian
-       echo "git clone git://git.proxmox.com/git/pve-kernel.git\\ngit checkout $(GITVERSION)" > $(BUILD_DIR)/debian/SOURCE
+       echo "git clone git://git.proxmox.com/git/pve-kernel.git\\ngit checkout $(shell git rev-parse HEAD)" \
+           >$(BUILD_DIR)/debian/SOURCE
        @$(foreach dir, $(DIRS),echo "$(dir)=$($(dir))" >> $(BUILD_DIR)/debian/rules.d/env.mk;)
        echo "KVNAME=$(KVNAME)" >> $(BUILD_DIR)/debian/rules.d/env.mk
        echo "KERNEL_MAJMIN=$(KERNEL_MAJMIN)" >> $(BUILD_DIR)/debian/rules.d/env.mk