summaryrefslogtreecommitdiffstats
path: root/rules/host-system-openssl.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/host-system-openssl.make')
-rw-r--r--rules/host-system-openssl.make27
1 files changed, 27 insertions, 0 deletions
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