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 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
10 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
15 $(BUILDDIR
): $(SRCDIR
)/Readme.md
17 cp
-rpa
$(SRCDIR
) $@.tmp
18 rm -rf
$@.tmp
/ArmPkg
/Library
/GccLto
/*.a
20 echo
"git clone git://git.proxmox.com/git/pve-edk2-firmware.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp
/debian
/SOURCE
26 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
30 $(ORIG_SRC_TAR
): $(BUILDDIR
)
31 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDDIR)/debian" $(BUILDDIR
)
33 $(DSC
): $(BUILDDIR
) $(ORIG_SRC_TAR
)
34 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
-d
47 test -e edk2
/Maintainers.txt || git submodule update
--init
--recursive
49 $(SRCDIR
)/Readme.md
: submodule
51 .PHONY
: update_modules
52 update_modules
: submodule
53 git submodule
foreach 'git pull --ff-only origin master'
56 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
58 tar cf
- $(DEB
)|ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
)
60 .PHONY
: distclean clean
63 rm -rf
*.deb
$(PACKAGE
)-[0-9]*/ $(PACKAGE
)*.
tar* *.changes
*.dsc
*.buildinfo
*.build