summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Krause <bst@pengutronix.de>2020-05-15 16:26:38 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-05-15 17:22:07 +0200
commitc691a61e4b244d30b046289655228981d27adc2c (patch)
treec1e1c6bb17680c2057e45ba2e695798c687ac344
parentce95bf74f032d47fdbec91f6505fc430f83427be (diff)
downloadptxdist-c691a61e4b244d30b046289655228981d27adc2c.tar.gz
ptxdist-c691a61e4b244d30b046289655228981d27adc2c.tar.xz
code-signing: introduce for ptxconfig, add sanity check
Create a new rules/code-signing.in to be able to select CODE_SIGNING not only in platformconfig but also in ptxconfig. Also make sure that PTXCONF_CODE_SIGNING_PROVIDER is set correctly if PTXCONF_CODE_SIGNING is set. Signed-off-by: Bastian Krause <bst@pengutronix.de> Message-Id: <20200515142641.812-13-bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/code-signing.in4
-rw-r--r--rules/code-signing.make13
2 files changed, 17 insertions, 0 deletions
diff --git a/rules/code-signing.in b/rules/code-signing.in
new file mode 100644
index 000000000..ae2ba726d
--- /dev/null
+++ b/rules/code-signing.in
@@ -0,0 +1,4 @@
+## SECTION=hosttools_noprompt_ptx
+
+config CODE_SIGNING
+ bool
diff --git a/rules/code-signing.make b/rules/code-signing.make
new file mode 100644
index 000000000..db1c5ab88
--- /dev/null
+++ b/rules/code-signing.make
@@ -0,0 +1,13 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Bastian Krause <bst@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+ifdef PTXCONF_CODE_SIGNING
+ifeq ($(call remove_quotes,$(PTXCONF_CODE_SIGNING_PROVIDER)),)
+$(error PTXCONF_CODE_SIGNING_PROVIDER must be set correctly)
+endif
+endif