]>
Commit | Line | Data |
---|---|---|
7bbca2e6 | 1 | FW_VER=2.0 |
3498eabf | 2 | FW_REL=6 |
7bbca2e6 FG |
3 | FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb |
4 | ||
2e671300 | 5 | GITVERSION:=$(shell git rev-parse HEAD) |
7bbca2e6 | 6 | |
cf48ed1e | 7 | export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp) |
61bce7be | 8 | |
7bbca2e6 FG |
9 | DEBS=${FW_DEB} |
10 | ||
d6dee2a6 FG |
11 | .PHONY: deb |
12 | deb: ${DEBS} | |
13 | ||
cf48ed1e TL |
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 | ||
66fbffe1 | 19 | fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fwlist-4.4-and-older-pve fwlist-4.10.5-1-pve fwlist-4.13.1-1-pve |
7bbca2e6 FG |
20 | rm -rf fwdata |
21 | mkdir -p fwdata/lib/firmware | |
b0b4a907 | 22 | ./assemble-firmware.pl fwlist-4.15.18-8-pve fwdata/lib/firmware |
7bbca2e6 | 23 | # include any files from older/newer kernels here |
b0b4a907 | 24 | ./assemble-firmware.pl fwlist-4.15.18-1-pve fwdata/lib/firmware |
74d1de56 | 25 | ./assemble-firmware.pl fwlist-4.15.3-1-pve fwdata/lib/firmware |
75cfc395 | 26 | ./assemble-firmware.pl fwlist-4.13.1-1-pve fwdata/lib/firmware |
59f704c1 | 27 | ./assemble-firmware.pl fwlist-4.4-and-older-pve fwdata/lib/firmware |
66fbffe1 | 28 | ./assemble-firmware.pl fwlist-4.10.5-1-pve fwdata/lib/firmware |
7bbca2e6 FG |
29 | install -d fwdata/usr/share/doc/pve-firmware |
30 | cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README | |
31 | install -d fwdata/usr/share/doc/pve-firmware/licenses | |
32 | cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses | |
349bb95e FG |
33 | |
34 | # upgrade to current master | |
35 | .PHONY: update_modules | |
01a072c6 | 36 | update_modules: submodule |
349bb95e FG |
37 | git submodule foreach 'git pull --ff-only origin master' |
38 | ||
39 | # make sure submodules were initialized | |
01a072c6 FG |
40 | .PHONY: submodule |
41 | submodule dvb-firmware.git/README linux-firmware.git/WHENCE: | |
349bb95e | 42 | test -f "linux-firmware.git/WHENCE" || git submodule update --init |
ff43d65f | 43 | |
46d7ecd0 FG |
44 | .PHONY: upload |
45 | upload: ${DEBS} | |
67bb4d45 | 46 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch |
46d7ecd0 | 47 | |
ff43d65f FG |
48 | .PHONY: clean |
49 | clean: | |
50 | rm -rf fwdata *.deb *.buildinfo *.dsc *.changes |