]> git.proxmox.com Git - pve-firmware.git/blame - Makefile
assemble: note that we found a linked firmware
[pve-firmware.git] / Makefile
CommitLineData
60dfdcbf
TL
1include /usr/share/dpkg/pkg-info.mk
2
388db715 3FW_DEB=pve-firmware_${DEB_VERSION}_all.deb
7bbca2e6 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
782f51b7 19.PHONY: fw.list
d88aaa91 20fw.list: fwlist-5.4.86-1-pve
77fd7c2f 21fw.list: fwlist-5.11.0-1-pve
cdc742f2 22fw.list: fwlist-5.11.21-1-pve
d0434706 23fw.list: fwlist-5.11.22-4-pve
d10fed35 24fw.list: fwlist-5.13.14-1-pve
c91c823a 25fw.list: fwlist-5.13.19-1-pve
b82d248b 26fw.list: fwlist-5.13.19-4-pve
7dff192c 27fw.list: fwlist-5.15.5-1-pve
782f51b7
TL
28 sort -u $^ > $@
29
30fwdata: linux-firmware.git/WHENCE dvb-firmware.git/README fw.list
b06e3a42
TL
31 rm -rf fwdata fwdata.tmp
32 mkdir -p fwdata.tmp/lib/firmware
279821b7 33 cd linux-firmware.git; ./copy-firmware.sh -v ../fwdata.tmp/lib/firmware/
782f51b7 34 ./assemble-firmware.pl fw.list fwdata.tmp/lib/firmware
c3fe809a 35 find fwdata.tmp/lib/firmware -empty -type d -delete
b06e3a42
TL
36 install -d fwdata.tmp/usr/share/doc/pve-firmware
37 cp linux-firmware.git/WHENCE fwdata.tmp/usr/share/doc/pve-firmware/README
38 install -d fwdata.tmp/usr/share/doc/pve-firmware/licenses
39 cp linux-firmware.git/LICEN[CS]E* fwdata.tmp/usr/share/doc/pve-firmware/licenses
40 mv fwdata.tmp fwdata
349bb95e
FG
41
42# upgrade to current master
43.PHONY: update_modules
01a072c6 44update_modules: submodule
349bb95e
FG
45 git submodule foreach 'git pull --ff-only origin master'
46
47# make sure submodules were initialized
01a072c6
FG
48.PHONY: submodule
49submodule dvb-firmware.git/README linux-firmware.git/WHENCE:
349bb95e 50 test -f "linux-firmware.git/WHENCE" || git submodule update --init
ff43d65f 51
46d7ecd0
FG
52.PHONY: upload
53upload: ${DEBS}
b9f9c630 54 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye
46d7ecd0 55
ff43d65f
FG
56.PHONY: clean
57clean:
782f51b7 58 rm -rf fwdata fw.list *.deb *.buildinfo *.dsc *.changes