diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-01-24 14:56:04 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-01-24 23:47:05 +0100 |
commit | 92b4addec51cdc80d965dd7951dc2c320879ef71 (patch) | |
tree | d950cf60f9459ebdd5102500e087db33a0ee5eaf /rules/pre | |
parent | 9cb0dd049366f33b43a68178b1e763bc160fe4cf (diff) | |
download | ptxdist-92b4addec51cdc80d965dd7951dc2c320879ef71.tar.gz ptxdist-92b4addec51cdc80d965dd7951dc2c320879ef71.tar.xz |
host-system-python*: cleanup variables
- Define SYSTEMPYTHON similar to SYSTEMPYTHON3
- No absolute paths to avoid too long shebangs
- Only define if the packages are enabled
- Define the variables in rules/pre/ to allow usage with ':='
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pre')
-rw-r--r-- | rules/pre/python.make | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/rules/pre/python.make b/rules/pre/python.make new file mode 100644 index 000000000..b8db7fe46 --- /dev/null +++ b/rules/pre/python.make @@ -0,0 +1,21 @@ +# -*-makefile-*- +# +# Copyright (C) 2020 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +ifdef PTXCONF_HOST_SYSTEM_PYTHON +SYSTEMPYTHON := python2 +else +SYSTEMPYTHON := host-system-python-is-disabled +endif + +ifdef PTXCONF_HOST_SYSTEM_PYTHON3 +SYSTEMPYTHON3 := python3 +else +SYSTEMPYTHON3 := host-system-python3-is-disabled +endif + +# vim: syntax=make |