summaryrefslogtreecommitdiff
path: root/set_soenv.in
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2014-07-06 16:56:22 +0000
committerPedro Giffuni <pfg@apache.org>2014-07-06 16:56:22 +0000
commit0f7a4a820f14961ef9026fab15080bad8c8c32eb (patch)
tree1a4c7aa7530e777037fd1522194f5ebf26c10ad9 /set_soenv.in
parent246d1ce469c155b81743cb6eaa065da2b19d7dcc (diff)
Add initial support for FreeBSD PPC using gcc.
This is just the skeleton and required bridge support based on linux-ppc. Currently untested.
Notes
Notes: reject: reuse linux bridge if possible
Diffstat (limited to 'set_soenv.in')
-rw-r--r--set_soenv.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/set_soenv.in b/set_soenv.in
index 53c931d518cd..5cd279f83039 100644
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -397,6 +397,46 @@ elsif ( $platform =~ m/freebsd/ )
$JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."client";
$JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."native_threads";
}
+ elsif ($platform =~ m/^powerpc/)
+ {
+ if (($platform =~ m/^powerpc64/) && ('@SIZEOF_LONG@' eq '8')) {
+ print "Setting FreeBSD PPC64 specific values... ";
+ $outfile = "FreeBSDPPC64Env.Set";
+ $OUTPATH = "unxfbsdppc64";
+ $CPUNAME = "POWERPC64";
+
+ if ( $JDK eq "gcj" ) {
+ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc64";
+ $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc64".$ds."client";
+ $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc64".$ds."native_threads";
+ }
+ }
+ else {
+ print "Setting FreeBSD PPC specific values... ";
+ $outfile = "FreeBSDPPCEnv.Set";
+ $OUTPATH = "unxlngppc";
+ $CPUNAME = "POWERPC";
+
+ if ( $JDK eq "gcj" ) {
+ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc";
+ $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc".$ds."client";
+ $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc".$ds."native_threads"; }
+ elsif ($JDK =~ m/^[Ii][Bb][Mm]/)
+ { $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc";
+ $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc".$ds."classic";
+ $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc";
+ }
+ # OpenJDK
+ elsif ($JDK =~ m/sun/) {
+ $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc";
+ $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc".$ds."server";
+ $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."ppc".$ds."native_threads";
+ }
+ }
+
+ $CPU = "P";
+
+ }
else
{ print "Unsupported FreeBSD architecture: $platform \n";
exit 1;