diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-10 17:43:45 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-12 12:12:01 +0200 |
commit | 6d2a865478b84f454d301ed2f182f29f3440ad67 (patch) | |
tree | c4b22bb995bf2cbe8e4a88ff54c99a3108c523de /rules/host-system-python3.make | |
parent | e40deb01179939de880188b95ff7f831bd8e963c (diff) | |
download | ptxdist-6d2a865478b84f454d301ed2f182f29f3440ad67.tar.gz ptxdist-6d2a865478b84f454d301ed2f182f29f3440ad67.tar.xz |
host-system-python3: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-system-python3.make')
-rw-r--r-- | rules/host-system-python3.make | 31 |
1 files changed, 31 insertions, 0 deletions
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 |