]> git.proxmox.com Git - pve-firmware.git/blob - Makefile
d6d386ccf89c8075f87a8b3dbf1c1e7972855144
[pve-firmware.git] / Makefile
1 FW_VER=2.0
2 FW_REL=2
3 FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb
4
5 GITVERSION:=$(shell cat .git/refs/heads/master)
6
7 export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
8
9 DEBS=${FW_DEB}
10
11 ${FW_DEB}: fwdata
12 cp -a debian fwdata
13 echo "git clone git://git.proxmox.com/git/pve-firmware.git\\ngit checkout ${GITVERSION}" >fwdata/debian/SOURCE
14 cd fwdata; dpkg-buildpackage -b -us -uc
15
16 fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fwlist-2.6.18-2-pve fwlist-2.6.24-12-pve fwlist-2.6.32-3-pve fwlist-2.6.32-4-pve fwlist-2.6.32-6-pve fwlist-2.6.32-13-pve fwlist-2.6.32-14-pve fwlist-2.6.32-20-pve fwlist-2.6.32-21-pve fwlist-3.10.0-3-pve fwlist-3.10.0-7-pve fwlist-3.10.0-8-pve fwlist-3.19.8-1-pve fwlist-4.2.8-1-pve fwlist-4.4.13-2-pve fwlist-4.4.16-1-pve fwlist-4.4.21-1-pve fwlist-4.4.44-1-pve fwlist-4.10.5-1-pve
17 rm -rf fwdata
18 mkdir -p fwdata/lib/firmware
19 ./assemble-firmware.pl fwlist-4.10.5-1-pve fwdata/lib/firmware
20 # include any files from older/newer kernels here
21 ./assemble-firmware.pl fwlist-2.6.18-2-pve fwdata/lib/firmware
22 ./assemble-firmware.pl fwlist-2.6.24-12-pve fwdata/lib/firmware
23 ./assemble-firmware.pl fwlist-2.6.32-3-pve fwdata/lib/firmware
24 ./assemble-firmware.pl fwlist-2.6.32-4-pve fwdata/lib/firmware
25 ./assemble-firmware.pl fwlist-2.6.32-6-pve fwdata/lib/firmware
26 ./assemble-firmware.pl fwlist-2.6.32-13-pve fwdata/lib/firmware
27 ./assemble-firmware.pl fwlist-2.6.32-14-pve fwdata/lib/firmware
28 ./assemble-firmware.pl fwlist-2.6.32-20-pve fwdata/lib/firmware
29 ./assemble-firmware.pl fwlist-2.6.32-21-pve fwdata/lib/firmware
30 ./assemble-firmware.pl fwlist-3.10.0-3-pve fwdata/lib/firmware
31 ./assemble-firmware.pl fwlist-3.10.0-7-pve fwdata/lib/firmware
32 ./assemble-firmware.pl fwlist-3.10.0-8-pve fwdata/lib/firmware
33 ./assemble-firmware.pl fwlist-3.19.8-1-pve fwdata/lib/firmware
34 ./assemble-firmware.pl fwlist-4.2.8-1-pve fwdata/lib/firmware
35 ./assemble-firmware.pl fwlist-4.4.13-2-pve fwdata/lib/firmware
36 ./assemble-firmware.pl fwlist-4.4.16-1-pve fwdata/lib/firmware
37 ./assemble-firmware.pl fwlist-4.4.21-1-pve fwdata/lib/firmware
38 ./assemble-firmware.pl fwlist-4.4.44-1-pve fwdata/lib/firmware
39 install -d fwdata/usr/share/doc/pve-firmware
40 cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README
41 install -d fwdata/usr/share/doc/pve-firmware/licenses
42 cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses
43
44 # upgrade to current master
45 .PHONY: update_modules
46 update_modules: submodules
47 git submodule foreach 'git pull --ff-only origin master'
48
49 # make sure submodules were initialized
50 .PHONY: submodules
51 submodules dvb-firmware.git/README linux-firmware.git/WHENCE:
52 test -f "linux-firmware.git/WHENCE" || git submodule update --init
53
54 .PHONY: upload
55 upload: ${DEBS}
56 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
57
58 .PHONY: clean
59 clean:
60 rm -rf fwdata *.deb *.buildinfo *.dsc *.changes