mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 6/6] rules/sbsigntools: Add new package.
Date: Fri, 16 Jul 2021 15:41:07 +0200
Message-ID: <20210716134107.31712-6-christian.melki@t2data.com> (raw)
In-Reply-To: <20210716134107.31712-1-christian.melki@t2data.com>

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 <christian.melki@t2data.com>
---
 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 <christian.melki@t2data.com>
+#
+# 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 <christian.melki@t2data.com>")
+	@$(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
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


      parent reply	other threads:[~2021-07-16 13:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-16 13:41 [ptxdist] [PATCH 1/6] rules/host-gnu-efi: " Christian Melki
2021-07-16 13:41 ` [ptxdist] [PATCH 2/6] rules/gnu-efi: " Christian Melki
2021-07-19  9:09   ` Roland Hieber
2021-07-19  9:11     ` Roland Hieber
2021-07-20 13:08     ` Christian Melki
2021-07-20 14:22       ` Roland Hieber
2021-07-16 13:41 ` [ptxdist] [PATCH 3/6] rules/host-efitools: " Christian Melki
2021-07-16 13:41 ` [ptxdist] [PATCH 4/6] rules/efitools: " Christian Melki
2021-07-16 13:41 ` [ptxdist] [PATCH 5/6] rules/host-sbsigntools: " Christian Melki
2021-07-16 13:41 ` Christian Melki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210716134107.31712-6-christian.melki@t2data.com \
    --to=christian.melki@t2data.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

mailarchive of the ptxdist mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://lore.ptxdist.org/ptxdist/0 ptxdist/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ptxdist ptxdist/ https://lore.ptxdist.org/ptxdist \
		ptxdist@pengutronix.de
	public-inbox-index ptxdist

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git