mirror of
https://git.proxmox.com/git/shim-signed
synced 2025-04-28 13:50:37 +00:00

else DEB_HOST_ARCH is not potentially not yet set and some invocations might print a spurious warning. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
40 lines
1.0 KiB
Makefile
Executable File
40 lines
1.0 KiB
Makefile
Executable File
#! /usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
|
|
VERSION := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
|
|
SHIM_VERSION := $(shell dpkg-query -f '$${Version}\n' -W shim-unsigned)
|
|
SHIM_HELPERS_VERSION := $(shell dpkg-query -f '$${Version}\n' -W shim-helpers-$(DEB_HOST_ARCH)-signed)
|
|
VENDOR := $(shell dpkg-vendor --query vendor)
|
|
|
|
ifeq ($(DEB_HOST_ARCH),amd64)
|
|
export EFI_ARCH := x64
|
|
endif
|
|
ifeq ($(DEB_HOST_ARCH),arm64)
|
|
export EFI_ARCH := aa64
|
|
endif
|
|
ifeq ($(DEB_HOST_ARCH),i386)
|
|
export EFI_ARCH := ia32
|
|
endif
|
|
|
|
%:
|
|
dh $@
|
|
|
|
docdir := debian/shim-signed-common/usr/share/doc/shim-signed-common
|
|
|
|
override_dh_installdebconf:
|
|
dh_installdebconf -p shim-signed-common
|
|
|
|
override_dh_installdeb:
|
|
ifeq ($(VENDOR),Debian)
|
|
# Remove apport files from Debian builds, they're not useful
|
|
find debian/shim-signed-common -name '*apport*' | xargs rm -rvf
|
|
endif
|
|
dh_installdeb
|
|
|
|
override_dh_gencontrol:
|
|
dh_gencontrol -- -v$(VERSION)+$(SHIM_VERSION) \
|
|
-Vshim:Version=$(SHIM_VERSION) \
|
|
-Vhelpers:Version=$(SHIM_HELPERS_VERSION)
|
|
|