]> git.proxmox.com Git - pve-firmware.git/blob - Makefile
add fwlist-5.13.19-1-pve
[pve-firmware.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 FW_DEB=pve-firmware_${DEB_VERSION}_all.deb
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6
7 export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
8
9 DEBS=${FW_DEB}
10
11 .PHONY: deb
12 deb: ${DEBS}
13
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
19 .PHONY: fw.list
20 fw.list: fwlist-5.4.86-1-pve
21 fw.list: fwlist-5.11.0-1-pve
22 fw.list: fwlist-5.11.21-1-pve
23 fw.list: fwlist-5.11.22-4-pve
24 fw.list: fwlist-5.13.14-1-pve
25 fw.list: fwlist-5.13.19-1-pve
26 sort -u $^ > $@
27
28 fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fw.list
29 rm -rf fwdata fwdata.tmp
30 mkdir -p fwdata.tmp/lib/firmware
31 cd linux-firmware.git; ./copy-firmware.sh -v ../fwdata.tmp/lib/firmware/
32 ./assemble-firmware.pl fw.list fwdata.tmp/lib/firmware
33 find fwdata.tmp/lib/firmware -empty -type d -delete
34 install -d fwdata.tmp/usr/share/doc/pve-firmware
35 cp linux-firmware.git/WHENCE fwdata.tmp/usr/share/doc/pve-firmware/README
36 install -d fwdata.tmp/usr/share/doc/pve-firmware/licenses
37 cp linux-firmware.git/LICEN[CS]E* fwdata.tmp/usr/share/doc/pve-firmware/licenses
38 mv fwdata.tmp fwdata
39
40 # upgrade to current master
41 .PHONY: update_modules
42 update_modules: submodule
43 git submodule foreach 'git pull --ff-only origin master'
44
45 # make sure submodules were initialized
46 .PHONY: submodule
47 submodule dvb-firmware.git/README linux-firmware.git/WHENCE:
48 test -f "linux-firmware.git/WHENCE" || git submodule update --init
49
50 .PHONY: upload
51 upload: ${DEBS}
52 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
53
54 .PHONY: clean
55 clean:
56 rm -rf fwdata fw.list *.deb *.buildinfo *.dsc *.changes