summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-09-06 11:30:24 +0000
committerThomas Martitz <kugel@rockbox.org>2010-09-06 11:30:24 +0000
commitd7cfd7621682115aaa4112e14068fed94f71a554 (patch)
treed821dbff01dee24b1214c6121b06a6cf41255d96 /tools
parentcb435ab5c1ffc5ab0ad2c14f41cb67bf4d8b6a66 (diff)
downloadrockbox-d7cfd7621682115aaa4112e14068fed94f71a554.tar.gz
rockbox-d7cfd7621682115aaa4112e14068fed94f71a554.tar.bz2
rockbox-d7cfd7621682115aaa4112e14068fed94f71a554.zip
Check for presence of the sdk and ndk (the corresponding env variables to be exact) in configure.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28003 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 1742e28789..5d6d63ac88 100755
--- a/tools/configure
+++ b/tools/configure
@@ -95,6 +95,16 @@ app_get_platform() {
if [ -n "$PREFIX" ]; then
echo "WARNING: PREFIX not supported on Android. You can however use --rbdir"
fi
+ if [ -z "$ANDROID_SDK_PATH" ]; then
+ echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH"
+ echo "environment variable point to the root directory of the Android SDK."
+ exit
+ fi
+ if [ -z "$ANDROID_NDK_PATH" ]; then
+ echo "ERROR: You need the Android NDK installed and have the ANDROID_NDK_PATH"
+ echo "environment variable point to the root directory of the Android NDK."
+ exit
+ fi
rbdir="/data/data/org.rockbox/app_rockbox/rockbox"
bindir="/data/data/org.rockbox/lib"
bindir_full=$bindir