mirror of
https://git.proxmox.com/git/pve-edk2-firmware
synced 2025-10-04 08:19:46 +00:00
buildsys: adapt tracking deb files to recent package split
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fa632d48a5
commit
0956483e6d
30
Makefile
30
Makefile
@ -6,11 +6,18 @@ SRCDIR=edk2
|
|||||||
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||||
ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
|
ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
|
||||||
|
|
||||||
DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
|
|
||||||
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
|
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
|
||||||
|
|
||||||
all: $(DEB)
|
# transitional virtual package depending on the amd64 ones
|
||||||
@echo $(DEB)
|
VIRTUAL_DEB = $(PACKAGE)_$(DEB_VERSION)_all.deb
|
||||||
|
AMD64_DEB = $(PACKAGE)-legacy_$(DEB_VERSION)_all.deb $(PACKAGE)-ovmf_$(DEB_VERSION)_all.deb
|
||||||
|
AARCH64_DEB = $(PACKAGE)-aarch64_$(DEB_VERSION)_all.deb
|
||||||
|
RISCV_DEB = $(PACKAGE)-riscv_$(DEB_VERSION)_all.deb
|
||||||
|
|
||||||
|
DEBS = $(VIRTUAL_DEB) $(AMD64_DEB) $(AARCH64_DEB) $(RISCV_DEB)
|
||||||
|
|
||||||
|
all: $(DEBS)
|
||||||
|
@echo $(DEBS)
|
||||||
|
|
||||||
$(BUILDDIR): $(SRCDIR)/Readme.md
|
$(BUILDDIR): $(SRCDIR)/Readme.md
|
||||||
rm -rf $@ $@.tmp
|
rm -rf $@ $@.tmp
|
||||||
@ -21,11 +28,12 @@ $(BUILDDIR): $(SRCDIR)/Readme.md
|
|||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEB)
|
deb: $(DEBS)
|
||||||
$(DEB): $(BUILDDIR)
|
$(AMD64_DEB) $(AARCH64_DEB) $(RISCV_DEB): $(VIRTUAL_DEB)
|
||||||
|
$(VIRTUAL_DEB): $(BUILDDIR)
|
||||||
cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
|
cd $(BUILDDIR); dpkg-buildpackage -b -uc -us
|
||||||
lintian $(DEB)
|
lintian $(DEBS)
|
||||||
@echo $(DEB)
|
@echo $(DEBS)
|
||||||
|
|
||||||
$(ORIG_SRC_TAR): $(BUILDDIR)
|
$(ORIG_SRC_TAR): $(BUILDDIR)
|
||||||
tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
|
tar czf $(ORIG_SRC_TAR) --exclude="$(BUILDDIR)/debian" $(BUILDDIR)
|
||||||
@ -54,8 +62,8 @@ update_modules: submodule
|
|||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
||||||
upload: $(DEB)
|
upload: $(DEBS)
|
||||||
tar cf - $(DEB)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)
|
tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)
|
||||||
|
|
||||||
.PHONY: distclean clean
|
.PHONY: distclean clean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
@ -63,5 +71,5 @@ clean:
|
|||||||
rm -rf *.deb $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.changes *.dsc *.buildinfo *.build
|
rm -rf *.deb $(PACKAGE)-[0-9]*/ $(PACKAGE)*.tar* *.changes *.dsc *.buildinfo *.build
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: $(DEB)
|
dinstall: $(VIRTUAL_DEB) $(AMD64_DEB)
|
||||||
dpkg -i $(DEB)
|
dpkg -i $^
|
||||||
|
Loading…
Reference in New Issue
Block a user