]> git.proxmox.com Git - pve-qemu-kvm.git/blob - Makefile
update seabios to 1.7.2.1
[pve-qemu-kvm.git] / Makefile
1 RELEASE=2.3
2
3 # also update debian/changelog
4 KVMVER=1.4
5 KVMPKGREL=7
6
7 KVMPACKAGE=pve-qemu-kvm
8 KVMDIR=qemu-kvm
9 KVMSRC=${KVMDIR}-src.tar.gz
10
11 ARCH=amd64
12
13 KVM_DEB=${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
14
15 all: ${KVM_DEB} ${KVMSRC}
16
17 .PHONY: download
18 download:
19 rm -rf ${KVMDIR} ${KVMSRC}
20 git clone git://git.qemu-project.org/qemu.git -b master ${KVMDIR}
21 cd ${KVMDIR}; git checkout -b local v1.4.0
22 # update to seabios 1.7.2.1
23 cd ${KVMDIR}; git cherry-pick 5c75fb10029c5fd1e705a6ef5d698fbea06c7a33
24 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
25
26 ${KVM_DEB} kvm: ${KVMSRC}
27 rm -rf ${KVMDIR}
28 tar xf ${KVMSRC}
29 cp -a debian ${KVMDIR}/debian
30 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
31 lintian ${KVM_DEB} || true
32
33 .PHONY: upload
34 upload: ${KVM_DEB} ${KVMDIR}-src.tar.gz
35 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
36 mkdir -p /pve/${RELEASE}/extra
37 rm -rf /pve/${RELEASE}/extra/Packages*
38 rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
39 cp ${KVM_DEB} /pve/${RELEASE}/extra
40 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
42
43 .PHONY: distclean
44 distclean: clean
45
46
47 .PHONY: clean
48 clean:
49 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_*
50
51 .PHONY: dinstall
52 dinstall: ${KVM_DEB}
53 dpkg -i ${KVM_DEB}