]> git.proxmox.com Git - pve-firmware.git/blame_incremental - Makefile
run make update_submodules
[pve-firmware.git] / Makefile
... / ...
CommitLineData
1FW_VER=2.0
2FW_REL=6
3FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb
4
5GITVERSION:=$(shell git rev-parse HEAD)
6
7export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
8
9DEBS=${FW_DEB}
10
11.PHONY: deb
12deb: ${DEBS}
13
14${FW_DEB}: fwdata
15 cp -a debian fwdata
16 echo "git clone git://git.proxmox.com/git/pve-firmware.git\\ngit checkout ${GITVERSION}" >fwdata/debian/SOURCE
17 cd fwdata; dpkg-buildpackage -b -us -uc
18
19fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fwlist-*-pve
20 rm -rf fwdata
21 mkdir -p fwdata/lib/firmware
22 ./assemble-firmware.pl fwlist-5.0.8-1-pve fwdata/lib/firmware
23 # include any files from older/newer kernels here
24 ./assemble-firmware.pl fwlist-4.15-and-older fwdata/lib/firmware
25 install -d fwdata/usr/share/doc/pve-firmware
26 cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README
27 install -d fwdata/usr/share/doc/pve-firmware/licenses
28 cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses
29
30# upgrade to current master
31.PHONY: update_modules
32update_modules: submodule
33 git submodule foreach 'git pull --ff-only origin master'
34
35# make sure submodules were initialized
36.PHONY: submodule
37submodule dvb-firmware.git/README linux-firmware.git/WHENCE:
38 test -f "linux-firmware.git/WHENCE" || git submodule update --init
39
40.PHONY: upload
41upload: ${DEBS}
42 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
43
44.PHONY: clean
45clean:
46 rm -rf fwdata *.deb *.buildinfo *.dsc *.changes