diff options
-rw-r--r-- | rules/host-system-python3.in | 8 | ||||
-rw-r--r-- | rules/host-system-python3.make | 31 |
2 files changed, 39 insertions, 0 deletions
diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in new file mode 100644 index 000000000..4c691fcd7 --- /dev/null +++ b/rules/host-system-python3.in @@ -0,0 +1,8 @@ +## SECTION=hosttools_noprompt + +config HOST_SYSTEM_PYTHON3 + tristate + +if HOST_SYSTEM_PYTHON + +endif diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make new file mode 100644 index 000000000..a02470c0c --- /dev/null +++ b/rules/host-system-python3.make @@ -0,0 +1,31 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Michael Olbrich <m.olbrich@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 +# +PACKAGES-$(PTXCONF_HOST_SYSTEM_PYTHON3) += host-system-python3 +HOST_SYSTEM_PYTHON3_LICENSE := ignore + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SYSTEMPYTHON3 := $(shell PATH=$(HOST_PATH) type -P python3 || echo python3) + +$(STATEDIR)/host-system-python3.prepare: + @$(call targetinfo) + @echo "Checking for Python 3 ..." + @$(SYSTEMPYTHON3) -V >/dev/null 2>&1 || \ + ptxd_bailout "'python3' not found! Please install."; + @echo + @$(call touch) + +# vim: syntax=make |