]>
Commit | Line | Data |
---|---|---|
7bbca2e6 | 1 | FW_VER=2.0 |
6a8a2aa3 | 2 | FW_REL=2 |
7bbca2e6 FG |
3 | FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb |
4 | ||
5 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
6 | ||
cf48ed1e | 7 | export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp) |
61bce7be | 8 | |
7bbca2e6 FG |
9 | DEBS=${FW_DEB} |
10 | ||
cf48ed1e TL |
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 | ||
59f704c1 | 16 | fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fwlist-4.4-and-older-pve fwlist-4.10.5-1-pve |
7bbca2e6 FG |
17 | rm -rf fwdata |
18 | mkdir -p fwdata/lib/firmware | |
56deccb0 | 19 | ./assemble-firmware.pl fwlist-4.10.5-1-pve fwdata/lib/firmware |
7bbca2e6 | 20 | # include any files from older/newer kernels here |
59f704c1 | 21 | ./assemble-firmware.pl fwlist-4.4-and-older-pve fwdata/lib/firmware |
7bbca2e6 FG |
22 | install -d fwdata/usr/share/doc/pve-firmware |
23 | cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README | |
24 | install -d fwdata/usr/share/doc/pve-firmware/licenses | |
25 | cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses | |
349bb95e FG |
26 | |
27 | # upgrade to current master | |
28 | .PHONY: update_modules | |
29 | update_modules: submodules | |
30 | git submodule foreach 'git pull --ff-only origin master' | |
31 | ||
32 | # make sure submodules were initialized | |
33 | .PHONY: submodules | |
34 | submodules dvb-firmware.git/README linux-firmware.git/WHENCE: | |
35 | test -f "linux-firmware.git/WHENCE" || git submodule update --init | |
ff43d65f | 36 | |
46d7ecd0 FG |
37 | .PHONY: upload |
38 | upload: ${DEBS} | |
39 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch | |
40 | ||
ff43d65f FG |
41 | .PHONY: clean |
42 | clean: | |
43 | rm -rf fwdata *.deb *.buildinfo *.dsc *.changes |