]> git.proxmox.com Git - pve-firmware.git/blob - Makefile
buildsys: set SOURCE_DATE_EPOCH to allow reproducible build
[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 -lchangelog.firmware)
8
9 DEBS=${FW_DEB}
10
11 ${FW_DEB} fw: control.firmware linux-firmware.git/WHENCE dvb-firmware.git/README changelog.firmware 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
12 rm -rf fwdata
13 mkdir -p fwdata/lib/firmware
14 ./assemble-firmware.pl fwlist-4.10.5-1-pve fwdata/lib/firmware
15 # include any files from older/newer kernels here
16 ./assemble-firmware.pl fwlist-2.6.18-2-pve fwdata/lib/firmware
17 ./assemble-firmware.pl fwlist-2.6.24-12-pve fwdata/lib/firmware
18 ./assemble-firmware.pl fwlist-2.6.32-3-pve fwdata/lib/firmware
19 ./assemble-firmware.pl fwlist-2.6.32-4-pve fwdata/lib/firmware
20 ./assemble-firmware.pl fwlist-2.6.32-6-pve fwdata/lib/firmware
21 ./assemble-firmware.pl fwlist-2.6.32-13-pve fwdata/lib/firmware
22 ./assemble-firmware.pl fwlist-2.6.32-14-pve fwdata/lib/firmware
23 ./assemble-firmware.pl fwlist-2.6.32-20-pve fwdata/lib/firmware
24 ./assemble-firmware.pl fwlist-2.6.32-21-pve fwdata/lib/firmware
25 ./assemble-firmware.pl fwlist-3.10.0-3-pve fwdata/lib/firmware
26 ./assemble-firmware.pl fwlist-3.10.0-7-pve fwdata/lib/firmware
27 ./assemble-firmware.pl fwlist-3.10.0-8-pve fwdata/lib/firmware
28 ./assemble-firmware.pl fwlist-3.19.8-1-pve fwdata/lib/firmware
29 ./assemble-firmware.pl fwlist-4.2.8-1-pve fwdata/lib/firmware
30 ./assemble-firmware.pl fwlist-4.4.13-2-pve fwdata/lib/firmware
31 ./assemble-firmware.pl fwlist-4.4.16-1-pve fwdata/lib/firmware
32 ./assemble-firmware.pl fwlist-4.4.21-1-pve fwdata/lib/firmware
33 ./assemble-firmware.pl fwlist-4.4.44-1-pve fwdata/lib/firmware
34 install -d fwdata/usr/share/doc/pve-firmware
35 cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README
36 install -d fwdata/usr/share/doc/pve-firmware/licenses
37 cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses
38 install -D -m 0644 changelog.firmware fwdata/usr/share/doc/pve-firmware/changelog.Debian
39 gzip -n -9 fwdata/usr/share/doc/pve-firmware/changelog.Debian
40 echo "git clone git://git.proxmox.com/git/pve-firmware.git\\ngit checkout ${GITVERSION}" >fwdata/usr/share/doc/pve-firmware/SOURCE
41 install -d fwdata/DEBIAN
42 sed -e 's/@VERSION@/${FW_VER}-${FW_REL}/' <control.firmware >fwdata/DEBIAN/control
43 dpkg-deb --build fwdata ${FW_DEB}
44
45 # upgrade to current master
46 .PHONY: update_modules
47 update_modules: submodules
48 git submodule foreach 'git pull --ff-only origin master'
49
50 # make sure submodules were initialized
51 .PHONY: submodules
52 submodules dvb-firmware.git/README linux-firmware.git/WHENCE:
53 test -f "linux-firmware.git/WHENCE" || git submodule update --init
54
55 .PHONY: upload
56 upload: ${DEBS}
57 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
58
59 .PHONY: clean
60 clean:
61 rm -rf fwdata *.deb *.buildinfo *.dsc *.changes