mirror of
https://git.proxmox.com/git/pve-edk2-firmware
synced 2025-10-04 22:09:20 +00:00
buildsys: inline getting git revision
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
871a8ed305
commit
fa632d48a5
4
Makefile
4
Makefile
@ -6,8 +6,6 @@ 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
|
||||||
|
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
|
||||||
|
|
||||||
DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
|
DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
|
||||||
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
|
DSC=$(PACKAGE)_$(DEB_VERSION).dsc
|
||||||
|
|
||||||
@ -19,7 +17,7 @@ $(BUILDDIR): $(SRCDIR)/Readme.md
|
|||||||
cp -rpa $(SRCDIR) $@.tmp
|
cp -rpa $(SRCDIR) $@.tmp
|
||||||
rm -rf $@.tmp/ArmPkg/Library/GccLto/*.a
|
rm -rf $@.tmp/ArmPkg/Library/GccLto/*.a
|
||||||
cp -a debian $@.tmp
|
cp -a debian $@.tmp
|
||||||
echo "git clone git://git.proxmox.com/git/pve-edk2-firmware.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/pve-edk2-firmware.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
|
Loading…
Reference in New Issue
Block a user