]> git.proxmox.com Git - pve-kernel-meta.git/blob - Makefile
efiboot: add loop_esp_list helper
[pve-kernel-meta.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 export KERNEL_VER=5.0
4 export KERNEL_ABI=5.0.15-1-pve
5
6 GITVERSION:=$(shell git rev-parse HEAD)
7
8 KERNEL_DEB=pve-kernel-${KERNEL_VER}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9 HEADERS_DEB=pve-headers-${KERNEL_VER}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
10 HELPER_DEB=pve-kernel-helper_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
11
12 BUILD_DIR=build
13
14 DEBS=${KERNEL_DEB} ${HEADERS_DEB} ${HELPER_DEB}
15
16 SUBDIRS = efiboot bin
17
18 .PHONY: all
19 all: ${SUBDIRS}
20 set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
21
22 .PHONY: deb
23 deb: ${DEBS}
24
25 ${HEADERS_DEB}: ${KERNEL_DEB}
26 ${KERNEL_DEB}: debian
27 rm -rf ${BUILD_DIR}
28 mkdir -p ${BUILD_DIR}/debian
29 rsync -a * ${BUILD_DIR}/
30 cd ${BUILD_DIR}; debian/rules debian/control
31 echo "git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
32 cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
33 lintian ${DEBS}
34
35 .PHONY: install
36 install: ${SUBDIRS}
37 set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
38
39 .PHONY: upload
40 upload: ${DEBS}
41 tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster
42
43 .PHONY: clean distclean
44 distclean: clean
45 clean:
46 rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo