summaryrefslogtreecommitdiffstats
path: root/scripts/configure_helper.py
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2019-04-25 08:38:26 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-04-25 17:37:42 +0200
commit63f2efa8c251ffe3f82c519c53829a7ef784ae74 (patch)
tree90d098208ae1b69556803eec3589974d37e70a70 /scripts/configure_helper.py
parentc42babd60335893e3243cd94549284137c8a8770 (diff)
downloadptxdist-63f2efa8c251ffe3f82c519c53829a7ef784ae74.tar.gz
ptxdist-63f2efa8c251ffe3f82c519c53829a7ef784ae74.tar.xz
configure_helper.py: also accept PTXDIST environment variable
Having an uppercase variable feels more POSIXy, and some other tools already accept the upper-case variant. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/configure_helper.py')
-rwxr-xr-xscripts/configure_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/configure_helper.py b/scripts/configure_helper.py
index c1864a83b..565e5be49 100755
--- a/scripts/configure_helper.py
+++ b/scripts/configure_helper.py
@@ -149,7 +149,7 @@ def abort(message):
exit(1)
def ask_ptxdist(pkg):
- ptxdist = os.environ.get("ptxdist", "ptxdist")
+ ptxdist = os.environ.get("PTXDIST", os.environ.get("ptxdist", "ptxdist"))
p = subprocess.Popen([ ptxdist, "-k", "make",
"/print-%s_DIR" % pkg,
"/print-%s_SUBDIR" % pkg,