diff options
authorYann E. MORIN" <>2009-12-19 11:44:21 (GMT)
committerYann E. MORIN" <>2009-12-19 11:44:21 (GMT)
commit5347a90a4febf5fd1e1c64145da807bb336d2e07 (patch)
parent75f0ec107c2d28b034957b998568aa82b4a2e0c0 (diff)
scripts: check for, and warn about an unset CT_PREFIX_DIR
The user shall provide a directory to install the toolchain into. If he/she does not, this is an error, and shall be detected properly, rather than relying on failure down the road. Thanks to "Pedro I. Sanchez" <> for pointing out the issue:
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/ b/scripts/
index d4e15fe..b42b187 100644
--- a/scripts/
+++ b/scripts/
@@ -134,6 +134,9 @@ CT_DoBuildTargetTuple
# then rescan the options file now:
. .config
+# Sanity check some directories
+CT_TestAndAbort "'CT_PREFIX_DIR' is not set: where should I install?" -z "${CT_PREFIX_DIR}"
# Second kludge: merge user-supplied target CFLAGS with architecture-provided
# target CFLAGS. Do the same for LDFLAGS in case it happens in the future.
# Put user-supplied flags at the end, so that they take precedence.