1 include /usr
/share
/dpkg
/pkg-info.mk
3 PACKAGE
=pve-edk2-firmware
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
7 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
12 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
17 $(BUILDDIR
): $(SRCDIR
)/Readme.md
19 cp
-rpa
$(SRCDIR
) $@.tmp
20 rm -rf
$@.tmp
/ArmPkg
/Library
/GccLto
/*.a
22 echo
"git clone git://git.proxmox.com/git/pve-edk2-firmware.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
28 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
32 $(ORIG_SRC_TAR
): $(BUILDDIR
)
33 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
35 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
36 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
-d
49 test -e edk2
/Maintainers.txt || git submodule update
--init
--recursive
51 $(SRCDIR
)/Readme.md
: submodule
53 .PHONY
: update_modules
54 update_modules
: submodule
55 git submodule
foreach 'git pull --ff-only origin master'
58 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
60 tar cf
- $(DEB
)|ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
)
62 .PHONY
: distclean clean
65 rm -rf
*.deb
$(PACKAGE
)-[0-9]*/ $(PACKAGE
)*.
tar* *.changes
*.dsc
*.buildinfo
*.build