summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/host-system-openssl.in4
-rw-r--r--rules/host-system-openssl.make27
2 files changed, 31 insertions, 0 deletions
diff --git a/rules/host-system-openssl.in b/rules/host-system-openssl.in
new file mode 100644
index 0000000..b602ec1
--- /dev/null
+++ b/rules/host-system-openssl.in
@@ -0,0 +1,4 @@
+## SECTION=hosttools_noprompt
+
+config HOST_SYSTEM_OPENSSL
+ tristate
diff --git a/rules/host-system-openssl.make b/rules/host-system-openssl.make
new file mode 100644
index 0000000..e1f30a4
--- /dev/null
+++ b/rules/host-system-openssl.make
@@ -0,0 +1,27 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SYSTEM_OPENSSL) += host-system-openssl
+HOST_SYSTEM_OPENSSL_LICENSE := ignore
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-system-openssl.prepare:
+ @$(call targetinfo)
+ @echo "Checking for openssl ..."
+ @pkg-config openssl || \
+ ptxd_bailout "openssl development files not found!" \
+ "Please install libssl-dev (debian) or openssl-devel (fedora)"
+ @$(call touch)
+
+# vim: syntax=make