]>
Commit | Line | Data |
---|---|---|
7bbca2e6 | 1 | FW_VER=2.0 |
1d7c5860 | 2 | FW_REL=4 |
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 | |
75cfc395 | 22 | ./assemble-firmware.pl fwlist-4.15.3-1-pve fwdata/lib/firmware |
7bbca2e6 | 23 | # include any files from older/newer kernels here |
75cfc395 | 24 | ./assemble-firmware.pl fwlist-4.13.1-1-pve fwdata/lib/firmware |
59f704c1 | 25 | ./assemble-firmware.pl fwlist-4.4-and-older-pve fwdata/lib/firmware |
66fbffe1 | 26 | ./assemble-firmware.pl fwlist-4.10.5-1-pve fwdata/lib/firmware |
7bbca2e6 FG |
27 | install -d fwdata/usr/share/doc/pve-firmware |
28 | cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README | |
29 | install -d fwdata/usr/share/doc/pve-firmware/licenses | |
30 | cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses | |
349bb95e FG |
31 | |
32 | # upgrade to current master | |
33 | .PHONY: update_modules | |
01a072c6 | 34 | update_modules: submodule |
349bb95e FG |
35 | git submodule foreach 'git pull --ff-only origin master' |
36 | ||
37 | # make sure submodules were initialized | |
01a072c6 FG |
38 | .PHONY: submodule |
39 | submodule dvb-firmware.git/README linux-firmware.git/WHENCE: | |
349bb95e | 40 | test -f "linux-firmware.git/WHENCE" || git submodule update --init |
ff43d65f | 41 | |
46d7ecd0 FG |
42 | .PHONY: upload |
43 | upload: ${DEBS} | |
67bb4d45 | 44 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch |
46d7ecd0 | 45 | |
ff43d65f FG |
46 | .PHONY: clean |
47 | clean: | |
48 | rm -rf fwdata *.deb *.buildinfo *.dsc *.changes |