]>
Commit | Line | Data |
---|---|---|
138e5330 | 1 | include /usr/share/dpkg/pkg-info.mk |
43a34d06 | 2 | |
019b187c | 3 | export KERNEL_VER=6.2 |
85b72cc3 | 4 | export KERNEL_ABI=6.2.11-2-pve |
43a34d06 | 5 | |
43a34d06 FG |
6 | GITVERSION:=$(shell git rev-parse HEAD) |
7 | ||
ae73ad46 TL |
8 | KERNEL_DEB=pve-kernel-$(KERNEL_VER)_$(DEB_VERSION)_all.deb |
9 | HEADERS_DEB=pve-headers-$(KERNEL_VER)_$(DEB_VERSION)_all.deb | |
43a34d06 FG |
10 | |
11 | BUILD_DIR=build | |
12 | ||
95f110d5 | 13 | DEBS=$(KERNEL_DEB) $(HEADERS_DEB) |
050577f6 SI |
14 | |
15 | .PHONY: deb | |
95f110d5 TL |
16 | deb: $(DEBS) |
17 | ||
18 | $(HEADERS_DEB): $(KERNEL_DEB) | |
19 | $(KERNEL_DEB): debian | |
20 | rm -rf $(BUILD_DIR) | |
21 | mkdir -p $(BUILD_DIR)/debian | |
22 | rsync -a * $(BUILD_DIR)/ | |
23 | cd $(BUILD_DIR); debian/rules debian/control | |
24 | echo "git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout $(GITVERSION)" > $(BUILD_DIR)/debian/SOURCE | |
25 | cd $(BUILD_DIR); dpkg-buildpackage -b -uc -us | |
26 | lintian $(DEBS) | |
b3d47d2d | 27 | |
43a34d06 | 28 | .PHONY: upload |
5ede1cc3 | 29 | upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) |
95f110d5 TL |
30 | upload: $(DEBS) |
31 | tar cf - $(DEBS)|ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST) | |
43a34d06 | 32 | |
138e5330 | 33 | .PHONY: clean distclean |
43a34d06 | 34 | distclean: clean |
43a34d06 | 35 | clean: |
95f110d5 | 36 | rm -rf *~ $(BUILD_DIR) *.deb *.dsc *.changes *.buildinfo |