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