]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blobdiff - support/dependencies/dependencies.sh
infra: Introduce BR2_HOST_NEEDS_JAVA
[coffee/buildroot.git] / support / dependencies / dependencies.sh
index 0e7e1fa0479ab34cf19e3b7ad0f0301d15a2a3c3..a965c6882a3bf9bf286de1b2309afd4863e5cb33 100755 (executable)
@@ -191,6 +191,14 @@ if grep -q ^BR2_PACKAGE_CLASSPATH=y $BR2_CONFIG ; then
        done
 fi
 
+if grep -q ^BR2_HOST_NEEDS_JAVA=y $BR2_CONFIG ; then
+       if ! which java > /dev/null ; then
+               echo >&2
+               echo "You must install 'java' on your build machine" >&2
+               exit 1
+       fi
+fi
+
 if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $BR2_CONFIG ; then
        if test ! -f /lib/ld-linux.so.2 ; then
                echo