diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-05-27 10:05:56 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2013-06-03 12:21:39 +0200 |
commit | 920db42c91d2c2b5e59118ff9b492e0c2da18fdf (patch) | |
tree | cd6543b727d4c16406c6470d033d6dc28b226cd3 | |
parent | 18191874631f176730323086c55d97bf6684fb69 (diff) | |
download | ptxdist-920db42c91d2c2b5e59118ff9b492e0c2da18fdf.tar.gz ptxdist-920db42c91d2c2b5e59118ff9b492e0c2da18fdf.tar.xz |
host-system-jdk: new package
This is a generic check for the system JDK
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/host-system-jdk.in | 12 | ||||
-rw-r--r-- | rules/host-system-jdk.make | 38 |
2 files changed, 50 insertions, 0 deletions
diff --git a/rules/host-system-jdk.in b/rules/host-system-jdk.in new file mode 100644 index 000000000..9e1c2b541 --- /dev/null +++ b/rules/host-system-jdk.in @@ -0,0 +1,12 @@ +## SECTION=hosttools_noprompt + +config HOST_SYSTEM_JDK + tristate + +if HOST_SYSTEM_JDK + +config HOST_SYSTEM_JDK_ANT + bool + +endif + diff --git a/rules/host-system-jdk.make b/rules/host-system-jdk.make new file mode 100644 index 000000000..2e31adce4 --- /dev/null +++ b/rules/host-system-jdk.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_HOST_SYSTEM_JDK) += host-system-jdk + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-system-jdk.prepare: + @$(call targetinfo) + @echo "Checking Java SDK ..." + @test "$(PTXCONF_SETUP_JAVA_SDK)" != "/usr" || \ + ptxd_bailout "SETUP_JAVA_SDK must not be '/usr'. \ + Please run 'ptxdist setup' to change this." + @echo "Checking for javac ..." + @test -x $(PTXCONF_SETUP_JAVA_SDK)/bin/javac || \ + ptxd_bailout "'$(PTXCONF_SETUP_JAVA_SDK)' is not a valid Java SDK. \ + Please run 'ptxdist setup' to change this." +ifdef PTXCONF_HOST_SYSTEM_JDK_ANT + @echo "Checking for ant ..." + @ant -h >/dev/null 2>&1 || \ + ptxd_bailout "'ant' not found! Please install."; +endif + @echo + @$(call touch) + +# vim: syntax=make |