1 include /usr
/share
/dpkg
/pkg-info.mk
5 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
6 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
8 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
9 FW_DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
15 $(FW_DEB
): $(BUILDDIR
)
16 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
24 $(DSC
): $(ORIG_SRC_TAR
) $(BUILDDIR
)
25 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
30 # NOTE: when collapsing FW lists keep major.minor still separated, so we can sunset the older ones
31 # without user impact safely. The last oldstable list needs to be kept avoid breakage on upgrade
33 fw.list
: fwlist-5.15.x.y-pve
34 fw.list
: fwlist-iwlwifi-extra
35 fw.list
: fwlist-6.2
.2-1-pve
36 fw.list
: fwlist-6.2
.6-1-pve
37 fw.list
: fwlist-6.2
.16-11-pve
38 fw.list
: fwlist-6.5
.3-1-pve
39 fw.list
: fwlist-6.8
.1-1-pve
40 fw.list
: fwlist-6.8
.8-1-pve
41 fw.list
: fwlist-6.8
.12-1-pve
46 $(ORIG_SRC_TAR
): $(BUILDDIR
)
47 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
49 $(BUILDDIR
): linux-firmware.git
/WHENCE dvb-firmware.git
/README fw.list
51 mkdir
-p
$@.tmp
/lib
/firmware
53 echo
"git clone git://git.proxmox.com/git/pve-firmware.git\\ngit checkout $$(git rev-parse HEAD)" >$@.tmp
/debian
/SOURCE
54 cd linux-firmware.git
; .
/copy-firmware.sh
-v ..
/$@.tmp
/lib
/firmware
/
55 .
/assemble-firmware.pl fw.list
$@.tmp
/lib
/firmware
56 find
$@.tmp
/lib
/firmware
-empty
-type d
-delete
57 install -d
$@.tmp
/usr
/share
/doc
/pve-firmware
58 cp linux-firmware.git
/WHENCE
$@.tmp
/usr
/share
/doc
/pve-firmware
/README
59 install -d
$@.tmp
/usr
/share
/doc
/pve-firmware
/licenses
60 cp linux-firmware.git
/LICEN
[CS
]E
* $@.tmp
/usr
/share
/doc
/pve-firmware
/licenses
61 # we only compress big ones that almost definitively ain't required in the initrd
62 # or are so big and unbuyable (netronome...)
63 cd
$@.tmp
/lib
/firmware
; find .
-type f \
( -name
'i[wb][lt]*' -o
-path
'*/netronome/*' \
) -print0 | xargs
-0 -n1
-P0
-- xz
-C crc32
64 cd
$@.tmp
/lib
/firmware
; find .
-xtype l
-print0 | xargs
-0 -n1
-P0
-- sh
-c
'ln -sf "$$(readlink "$$0").xz" "$$0"; mv "$$0" "$$0.xz"'
67 # upgrade to current master
68 .PHONY
: update_modules
69 update_modules
: submodule
70 git submodule
foreach 'git pull --ff-only origin master'
72 # make sure submodules were initialized
74 submodule dvb-firmware.git
/README linux-firmware.git
/WHENCE
:
75 test -f
"linux-firmware.git/WHENCE" || git submodule update
--init
78 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
80 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist $(UPLOAD_DIST
)
84 rm -rf
$(PACKAGE
)-[0-9]*/
85 rm -f
$(PACKAGE
)*.
tar* *.deb
*.dsc
*.changes
*.dsc
*.buildinfo
*.build