summaryrefslogtreecommitdiff
path: root/bootstrap.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.bash')
-rwxr-xr-xbootstrap.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap.bash b/bootstrap.bash
index dbc6eb2c0..ff1ac8a62 100755
--- a/bootstrap.bash
+++ b/bootstrap.bash
@@ -2,6 +2,14 @@
set -e
+if [ -z "$NO_DEPRECATION_WARNING" ]; then
+ echo '== WARNING: bootstrap.bash & ./soong are deprecated ==' >&2
+ echo 'Use `m --skip-make` with a standalone OUT_DIR instead.' >&2
+ echo 'Without envsetup.sh, use:' >&2
+ echo ' build/soong/soong_ui.bash --make-mode --skip-make' >&2
+ echo '======================================================' >&2
+fi
+
ORIG_SRCDIR=$(dirname "${BASH_SOURCE[0]}")
if [[ "$ORIG_SRCDIR" != "." ]]; then
if [[ ! -z "$BUILDDIR" ]]; then