sbsigntools as a target package. sbsign is a EFI image signer. This is the target package. Used to sign/resign images on target.
Signed-off-by: Christian Melki <[email protected]> --- rules/sbsigntools.in | 11 +++++++ rules/sbsigntools.make | 73 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 rules/sbsigntools.in create mode 100644 rules/sbsigntools.make diff --git a/rules/sbsigntools.in b/rules/sbsigntools.in new file mode 100644 index 000000000..146549eeb --- /dev/null +++ b/rules/sbsigntools.in @@ -0,0 +1,11 @@ +## SECTION=security + +config SBSIGNTOOLS + tristate + select OPENSSL + select LIBUUID + select GNU_EFI + select BINUTILS + prompt "sbsigntools" + help + Signing utility for UEFI secure boot. diff --git a/rules/sbsigntools.make b/rules/sbsigntools.make new file mode 100644 index 000000000..45b65ebbd --- /dev/null +++ b/rules/sbsigntools.make @@ -0,0 +1,73 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Christian Melki <[email protected]> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SBSIGNTOOLS) += sbsigntools + +# +# Paths and names +# +SBSIGNTOOLS_VERSION := 0.9.4 +SBSIGNTOOLS_MD5 := a0f39307109d32c88ef460de52612f5c +SBSIGNTOOLS := sbsigntools-$(SBSIGNTOOLS_VERSION) +SBSIGNTOOLS_SUFFIX := tar.gz +SBSIGNTOOLS_URL := https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/snapshot/$(SBSIGNTOOLS).$(SBSIGNTOOLS_SUFFIX) +SBSIGNTOOLS_SOURCE := $(SRCDIR)/$(SBSIGNTOOLS).$(SBSIGNTOOLS_SUFFIX) +SBSIGNTOOLS_DIR := $(BUILDDIR)/$(SBSIGNTOOLS) +SBSIGNTOOLS_LICENSE := GPL-3.0-only +SBSIGNTOOLS_LICENSE_FILES := \ + file://LICENSE.GPLv3;md5=9eef91148a9b14ec7f9df333daebc746 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ifdef PTXCONF_ARCH_X86 +SBSIGNTOOLS_ARCH := i386 +ifdef PTXCONF_ARCH_X86_64 +SBSIGNTOOLS_ARCH := x86_64 +endif +endif +ifdef PTXCONF_ARCH_ARM +SBSIGNTOOLS_ARCH := arm +endif +ifdef PTXCONF_ARCH_ARM64 +SBSIGNTOOLS_ARCH := aarch64 +endif + +SBSIGNTOOLS_CONF_TOOL := autoconf +SBSIGNTOOLS_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --with-gnu-efi=$(SYSROOT) \ + --with-efi-arch=$(SBSIGNTOOLS_ARCH) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/sbsigntools.targetinstall: + @$(call targetinfo) + + @$(call install_init, sbsigntools) + @$(call install_fixup, sbsigntools,PRIORITY,optional) + @$(call install_fixup, sbsigntools,SECTION,base) + @$(call install_fixup, sbsigntools,AUTHOR,"Christian Melki <[email protected]>") + @$(call install_fixup, sbsigntools,DESCRIPTION,missing) + @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbattach) + @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbkeysync) + @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbsiglist) + @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbsign) + @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbvarsign) + @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbverify) + @$(call install_finish, sbsigntools) + + @$(call touch) + +# vim: syntax=make -- 2.32.0 _______________________________________________ ptxdist mailing list [email protected] To unsubscribe, send a mail with subject "unsubscribe" to [email protected]
