1 include /usr
/share
/dpkg
/pkg-info.mk
3 FW_DEB
=pve-firmware_
$(DEB_VERSION
)_all.deb
5 GITVERSION
:=$(shell git rev-parse HEAD
)
7 export SOURCE_DATE_EPOCH ?
= $(shell dpkg-parsechangelog
-STimestamp
)
15 $(FW_DEB
): $(BUILDDIR
)
16 cp
-a debian
$(BUILDDIR
)
17 echo
"git clone git://git.proxmox.com/git/pve-firmware.git\\ngit checkout $(GITVERSION)" >$(BUILDDIR
)/debian
/SOURCE
18 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
20 # NOTE: when collapsing FW lists keep major.minor still separated, so we can sunset the older ones
21 # without user impact safely. The last oldstable list needs to be kept avoid breakage on upgrade
23 fw.list
: fwlist-5.4
.86-1-pve
24 fw.list
: fwlist-5.11.x-y-pve
25 fw.list
: fwlist-5.13.x-y-pve
26 fw.list
: fwlist-5.15
.5-1-pve
27 fw.list
: fwlist-5.15
.19-1-pve
28 fw.list
: fwlist-5.15
.27-1-pve
29 fw.list
: fwlist-5.15
.35-1-pve
30 fw.list
: fwlist-5.15
.53-1-pve
31 fw.list
: fwlist-5.19
.0-1-pve
32 fw.list
: fwlist-5.19
-iwlwifi-extra
37 $(BUILDDIR
): linux-firmware.git
/WHENCE dvb-firmware.git
/README fw.list
38 rm -rf
$(BUILDDIR
) $(BUILDDIR
).tmp
39 mkdir
-p
$(BUILDDIR
).tmp
/lib
/firmware
40 cd linux-firmware.git
; .
/copy-firmware.sh
-v ..
/$(BUILDDIR
).tmp
/lib
/firmware
/
41 .
/assemble-firmware.pl fw.list
$(BUILDDIR
).tmp
/lib
/firmware
42 find
$(BUILDDIR
).tmp
/lib
/firmware
-empty
-type d
-delete
43 install -d
$(BUILDDIR
).tmp
/usr
/share
/doc
/pve-firmware
44 cp linux-firmware.git
/WHENCE
$(BUILDDIR
).tmp
/usr
/share
/doc
/pve-firmware
/README
45 install -d
$(BUILDDIR
).tmp
/usr
/share
/doc
/pve-firmware
/licenses
46 cp linux-firmware.git
/LICEN
[CS
]E
* $(BUILDDIR
).tmp
/usr
/share
/doc
/pve-firmware
/licenses
47 # we only compress big ones that almost definitively ain't required in the initrd
48 # or are so big and unbuyable (netronome...)
49 cd
$(BUILDDIR
).tmp
/lib
/firmware
; find .
-type f \
( -name
'i[wb][lt]*' -o
-path
'*/netronome/*' \
) -print0 | xargs
-0 -n1
-P0
-- xz
-C crc32
50 cd
$(BUILDDIR
).tmp
/lib
/firmware
; find .
-xtype l
-print0 | xargs
-0 -n1
-P0
-- sh
-c
'ln -sf "$$(readlink "$$0").xz" "$$0"; mv "$$0" "$$0.xz"'
51 mv
$(BUILDDIR
).tmp
$(BUILDDIR
)
53 # upgrade to current master
54 .PHONY
: update_modules
55 update_modules
: submodule
56 git submodule
foreach 'git pull --ff-only origin master'
58 # make sure submodules were initialized
60 submodule dvb-firmware.git
/README linux-firmware.git
/WHENCE
:
61 test -f
"linux-firmware.git/WHENCE" || git submodule update
--init
65 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist bullseye
69 rm -rf
$(BUILDDIR
) $(BUILDDIR
).tmp fw.list
*.deb
*.buildinfo
*.dsc
*.changes