1 include /usr
/share
/dpkg
/pkg-info.mk
3 PACKAGE
=pve-edk2-firmware
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
8 GITVERSION
:=$(shell git rev-parse HEAD
)
10 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
11 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
16 $(BUILDDIR
): $(SRCDIR
)/Readme.md
18 cp
-rpa
$(SRCDIR
) $(BUILDDIR
)
19 cp
-a debian
$(BUILDDIR
)
20 echo
"git clone git://git.proxmox.com/git/pve-edk2-firmware.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
25 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
32 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
-d
37 test -e edk2
/Maintainers.txt || git submodule update
--init
--recursive
39 $(SRCDIR
)/Readme.md
: submodule
41 .PHONY
: update_modules
42 update_modules
: submodule
43 git submodule
foreach 'git pull --ff-only origin master'
47 tar cf
- $(DEB
)|ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist bullseye
49 .PHONY
: distclean clean
52 rm -rf
*~ debian
/*~
*.deb
$(PACKAGE
)-*/ *.
tar.gz
*.changes
*.dsc
*.buildinfo