forked from openkylin/platform_build
am 757e212c: am 0426da29: Merge "Fixed error message for using OpenJDK."
* commit '757e212ca2eb5584efb1631c3b26241ffb06e3c6': Fixed error message for using OpenJDK.
This commit is contained in:
commit
4dbbd8a37e
14
core/main.mk
14
core/main.mk
|
@ -139,12 +139,20 @@ $(warning ************************************************************)
|
|||
$(error Directory names containing spaces not supported)
|
||||
endif
|
||||
|
||||
# Check for the corrent jdk
|
||||
ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
|
||||
$(info ************************************************************)
|
||||
$(info You are attempting to build with an unsupported JDK.)
|
||||
$(info $(space))
|
||||
$(info You use OpenJDK but only Sun/Oracle JDK is supported.)
|
||||
$(info Please follow the machine setup instructions at)
|
||||
$(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
|
||||
$(info ************************************************************)
|
||||
$(error stop)
|
||||
endif
|
||||
|
||||
# Check for the correct version of java
|
||||
java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java .*[ "]1\.6[\. "$$]')
|
||||
ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
|
||||
java_version :=
|
||||
endif
|
||||
ifeq ($(strip $(java_version)),)
|
||||
$(info ************************************************************)
|
||||
$(info You are attempting to build with the incorrect version)
|
||||
|
|
Loading…
Reference in New Issue