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