Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de>
---
 rules/host-system-tcl.in   |  6 ++++++
 rules/host-system-tcl.make | 30 ++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 rules/host-system-tcl.in
 create mode 100644 rules/host-system-tcl.make

diff --git a/rules/host-system-tcl.in b/rules/host-system-tcl.in
new file mode 100644
index 000000000000..c736194d0e66
--- /dev/null
+++ b/rules/host-system-tcl.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+## SECTION=bootloader
+
+config HOST_SYSTEM_TCL
+       tristate
+
diff --git a/rules/host-system-tcl.make b/rules/host-system-tcl.make
new file mode 100644
index 000000000000..1c933841e092
--- /dev/null
+++ b/rules/host-system-tcl.make
@@ -0,0 +1,30 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Michael Olbrich <m.olbr...@pengutronix.de>
+#           (C) 2018 by Ahmad Fatoum <a.fat...@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SYSTEM_TCL) += host-system-tcl
+HOST_SYSTEM_TCL_LICENSE = ignore
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-system-tcl.prepare:
+       @$(call targetinfo)
+       @echo "Checking for tclsh ..."
+       @echo exit 0 | tclsh >/dev/null 2>&1 || \
+               ptxd_bailout "'tclsh' not found! Please install.";
+       @echo
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.19.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to