From: Peter Korsgaard Date: Tue, 4 Dec 2012 18:28:31 +0000 (-0800) Subject: dependencies.sh: check for java tools if classpath is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4be86184e032652863ea826edb9018f5f9b64b7d;p=buildroot.git dependencies.sh: check for java tools if classpath is enabled Signed-off-by: Peter Korsgaard --- diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 9f0f6a9fb5..1b79b2395c 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