2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-30 23:05:17 +00:00
Files
xcat-dep/ipxe-xcat/debian/rules
T
Vinícius Ferrão 9d944ee3c7 build(ipxe-xcat): install the shims signed by both UEFI CAs
The rpm and the deb install ipxe-shimx64.efi and ipxe-shimaa64.efi over
x86_64-sb/shimx64.efi and arm64-sb/shimaa64.efi of the release tree, so
firmware that trusts only the Microsoft UEFI CA 2023 loads the shim
with Secure Boot on. The ipxe-shim.efi and snponly-shim.efi links keep
their targets, and every other file of the tree is unchanged.
payload.sha256 lists the digests of the new shims, which both builders
check. The README says how to update them.
2026-09-27 12:01:19 -03:00

39 lines
1.1 KiB
Makefile
Executable File

#!/usr/bin/make -f
# The payload is the upstream release tree, byte for byte: nothing strips it, and dh_compress and
# dh_fixperms leave /tftpboot and the licence texts alone.
VERSION := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*$$//')
DEST := debian/ipxe-xcat
DOC := $(DEST)/usr/share/doc/ipxe-xcat
build build-arch build-indep:
clean:
dh_testdir
dh_clean
binary-arch:
binary-indep:
dh_testdir
dh_testroot
dh_prep
install -d $(DEST)/tftpboot/xcat/ipxe $(DOC)
tar -xzf ipxeboot-$(VERSION).tar.gz --no-same-owner --strip-components=1 -C $(DEST)/tftpboot/xcat/ipxe
install -m 0644 ipxe-shimx64.efi $(DEST)/tftpboot/xcat/ipxe/x86_64-sb/shimx64.efi
install -m 0644 ipxe-shimaa64.efi $(DEST)/tftpboot/xcat/ipxe/arm64-sb/shimaa64.efi
install -m 0644 ipxe-$(VERSION)-source.tar.gz $(DOC)/
cp -R licenses $(DOC)/licenses
dh_installdocs
dh_installchangelogs
dh_compress -Xlicenses/
dh_fixperms -Xtftpboot/
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build build-arch build-indep clean binary-arch binary-indep binary