summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-04 18:28:31 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-12-04 18:28:31 (GMT)
commit4be86184e032652863ea826edb9018f5f9b64b7d (patch)
tree175297db405a3675c81e6dc80b258acc5b54428e
parentae10e33a504770b0141dd7582c6ca26fc43b4642 (diff)
downloadbuildroot-4be86184e032652863ea826edb9018f5f9b64b7d.tar.gz
buildroot-4be86184e032652863ea826edb9018f5f9b64b7d.tar.bz2
dependencies.sh: check for java tools if classpath is enabled
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rwxr-xr-xsupport/dependencies/dependencies.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index 9f0f6a9..1b79b23 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -158,3 +158,11 @@ if grep ^BR2_TOOLCHAIN_BUILDROOT=y $CONFIG_FILE > /dev/null && \
exit 1 ;
fi
fi
+if grep -q ^BR2_PACKAGE_CLASSPATH=y $CONFIG_FILE ; then
+ for prog in java javac jar; do
+ if ! which $prog > /dev/null ; then
+ /bin/echo -e "\nYou must install '$prog' on your build machine\n" >&2
+ exit 1
+ fi
+ done
+fi