hotspot/make/aix/makefiles/defs.make
author ihse
Fri, 12 Jun 2015 08:31:01 +0200
changeset 33957 39113ae98993
parent 30113 3f6beb804b02
child 34319 9d6dd3c5ca23
permissions -rw-r--r--
8085822: JEP 223: New Version-String Scheme (initial integration) Reviewed-by: erikj, dcubed, dholmes, alanb Contributed-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>, Alejandro E Murillo <alejandro.murillo@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     1
#
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
     2
# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     3
# Copyright 2012, 2013 SAP AG. All rights reserved.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     5
#
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     6
# This code is free software; you can redistribute it and/or modify it
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     7
# under the terms of the GNU General Public License version 2 only, as
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     8
# published by the Free Software Foundation.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
     9
#
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    14
# accompanied this code).
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    15
#
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    19
#
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    22
# questions.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    23
#
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    24
#
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    25
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    26
# The common definitions for hotspot AIX builds.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    27
# Include the top level defs.make under make directory instead of this one.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    28
# This file is included into make/defs.make.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    29
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    30
SLASH_JAVA ?= /java
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    31
26691
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 22830
diff changeset
    32
define print_info
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 22830
diff changeset
    33
  ifneq ($$(LOG_LEVEL), warn)
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 22830
diff changeset
    34
    $$(shell echo >&2 "INFO: $1")
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 22830
diff changeset
    35
  endif
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 22830
diff changeset
    36
endef
40ea2c41f53b 8056999: Make hotspot builds less verbose on default log level
ihse
parents: 22830
diff changeset
    37
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    38
# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    39
#ARCH:=$(shell uname -m)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    40
PATH_SEP = :
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    41
ifeq ($(LP64), 1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    42
  ARCH_DATA_MODEL ?= 64
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    43
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    44
  ARCH_DATA_MODEL ?= 32
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    45
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    46
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    47
ifeq ($(ARCH_DATA_MODEL), 64)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    48
  ARCH = ppc64
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    49
else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    50
  ARCH = ppc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    51
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    52
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    53
# PPC
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    54
ifeq ($(ARCH), ppc)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    55
  #ARCH_DATA_MODEL = 32
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    56
  PLATFORM         = aix-ppc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    57
  VM_PLATFORM      = aix_ppc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    58
  HS_ARCH          = ppc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    59
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    60
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    61
# PPC64
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    62
ifeq ($(ARCH), ppc64)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    63
  #ARCH_DATA_MODEL = 64
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    64
  MAKE_ARGS       += LP64=1
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    65
  PLATFORM         = aix-ppc64
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    66
  VM_PLATFORM      = aix_ppc64
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    67
  HS_ARCH          = ppc
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    68
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    69
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    70
# On 32 bit aix we build server and client, on 64 bit just server.
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    71
ifeq ($(JVM_VARIANTS),)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    72
  ifeq ($(ARCH_DATA_MODEL), 32)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    73
    JVM_VARIANTS:=client,server
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    74
    JVM_VARIANT_CLIENT:=true
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    75
    JVM_VARIANT_SERVER:=true
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    76
  else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    77
    JVM_VARIANTS:=server
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    78
    JVM_VARIANT_SERVER:=true
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    79
  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    80
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
    81
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    82
# The Full Debug Symbols (FDS) default for BUILD_FLAVOR == product
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    83
# builds is enabled with debug info files ZIP'ed to save space. For
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    84
# BUILD_FLAVOR != product builds, FDS is always enabled, after all a
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    85
# debug build without debug info isn't very useful.
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    86
# The ZIP_DEBUGINFO_FILES option only has meaning when FDS is enabled.
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    87
#
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    88
# If you invoke a build with FULL_DEBUG_SYMBOLS=0, then FDS will be
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    89
# disabled for a BUILD_FLAVOR == product build.
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    90
#
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    91
# Note: Use of a different variable name for the FDS override option
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    92
# versus the FDS enabled check is intentional (FULL_DEBUG_SYMBOLS
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    93
# versus ENABLE_FULL_DEBUG_SYMBOLS). For auto build systems that pass
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    94
# in options via environment variables, use of distinct variables
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    95
# prevents strange behaviours. For example, in a BUILD_FLAVOR !=
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    96
# product build, the FULL_DEBUG_SYMBOLS environment variable will be
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    97
# 0, but the ENABLE_FULL_DEBUG_SYMBOLS make variable will be 1. If
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    98
# the same variable name is used, then different values can be picked
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
    99
# up by different parts of the build. Just to be clear, we only need
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   100
# two variable names because the incoming option value can be
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   101
# overridden in some situations, e.g., a BUILD_FLAVOR != product
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   102
# build.
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   103
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   104
# Due to the multiple sub-make processes that occur this logic gets
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   105
# executed multiple times. We reduce the noise by at least checking that
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   106
# BUILD_FLAVOR has been set.
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   107
ifneq ($(BUILD_FLAVOR),)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   108
  ifeq ($(BUILD_FLAVOR), product)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   109
    FULL_DEBUG_SYMBOLS ?= 1
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   110
    ENABLE_FULL_DEBUG_SYMBOLS = $(FULL_DEBUG_SYMBOLS)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   111
  else
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   112
    # debug variants always get Full Debug Symbols (if available)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   113
    ENABLE_FULL_DEBUG_SYMBOLS = 1
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   114
  endif
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   115
  $(eval $(call print_info, "ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)"))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   116
  # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   117
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   118
  ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   119
    # Default OBJCOPY comes from GNU Binutils on Linux
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   120
    ifeq ($(CROSS_COMPILE_ARCH),)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   121
      DEF_OBJCOPY=/usr/bin/objcopy
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   122
    else
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   123
      # Assume objcopy is part of the cross-compilation toolset
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   124
      ifneq ($(ALT_COMPILER_PATH),)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   125
        DEF_OBJCOPY=$(ALT_COMPILER_PATH)/objcopy
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   126
      endif
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   127
    endif
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   128
    OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   129
    ifneq ($(ALT_OBJCOPY),)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   130
      $(eval $(call print_info, "ALT_OBJCOPY=$(ALT_OBJCOPY)"))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   131
      OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   132
    endif
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   133
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   134
    ifeq ($(OBJCOPY),)
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   135
      $(eval $(call print_info, "no objcopy cmd found so cannot create .debuginfo files. You may need to set ALT_OBJCOPY."))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   136
      ENABLE_FULL_DEBUG_SYMBOLS=0
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   137
      $(eval $(call print_info, "ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)"))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   138
    else
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   139
      $(eval $(call print_info, "$(OBJCOPY) cmd found so will create .debuginfo files."))
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   140
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   141
      # Library stripping policies for .debuginfo configs:
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   142
      #   all_strip - strips everything from the library
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   143
      #   min_strip - strips most stuff from the library; leaves minimum symbols
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   144
      #   no_strip  - does not strip the library at all
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   145
      #
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   146
      # Oracle security policy requires "all_strip". A waiver was granted on
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   147
      # 2011.09.01 that permits using "min_strip" in the Java JDK and Java JRE.
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   148
      #
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   149
      # Currently, STRIP_POLICY is only used when Full Debug Symbols is enabled.
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   150
      #
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   151
      STRIP_POLICY ?= min_strip
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   152
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   153
      $(eval $(call print_info, "STRIP_POLICY=$(STRIP_POLICY)"))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   154
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   155
      ZIP_DEBUGINFO_FILES ?= 1
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   156
33957
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   157
      $(eval $(call print_info, "ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)"))
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   158
    endif
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   159
  endif # ENABLE_FULL_DEBUG_SYMBOLS=1
39113ae98993 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30113
diff changeset
   160
endif # BUILD_FLAVOR
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   161
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   162
# unused JDK_INCLUDE_SUBDIR=aix
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   163
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   164
# Library suffix
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   165
LIBRARY_SUFFIX=so
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   166
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   167
EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   168
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   169
# client and server subdirectories have symbolic links to ../libjsig.so
30113
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   170
EXPORT_LIST += $(EXPORT_LIB_ARCH_DIR)/libjsig.$(LIBRARY_SUFFIX)
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   171
#ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   172
#  ifeq ($(ZIP_DEBUGINFO_FILES),1)
30113
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   173
#    EXPORT_LIST += $(EXPORT_LIB_ARCH_DIR)/libjsig.diz
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   174
#  else
30113
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   175
#    EXPORT_LIST += $(EXPORT_LIB_ARCH_DIR)/libjsig.debuginfo
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   176
#  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   177
#endif
30113
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   178
EXPORT_SERVER_DIR = $(EXPORT_LIB_ARCH_DIR)/server
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   179
EXPORT_CLIENT_DIR = $(EXPORT_LIB_ARCH_DIR)/client
3f6beb804b02 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 26691
diff changeset
   180
EXPORT_MINIMAL_DIR = $(EXPORT_LIB_ARCH_DIR)/minimal
22830
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   181
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   182
ifeq ($(findstring true, $(JVM_VARIANT_SERVER) $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK) $(JVM_VARIANT_CORE)), true)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   183
  EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   184
  EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.$(LIBRARY_SUFFIX)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   185
#  ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   186
#    ifeq ($(ZIP_DEBUGINFO_FILES),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   187
#      EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.diz
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   188
#    else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   189
#      EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.debuginfo
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   190
#    endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   191
#  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   192
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   193
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   194
ifeq ($(JVM_VARIANT_CLIENT),true)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   195
  EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   196
  EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.$(LIBRARY_SUFFIX)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   197
#  ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   198
#    ifeq ($(ZIP_DEBUGINFO_FILES),1)
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   199
#      EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.diz
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   200
#    else
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   201
#      EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.debuginfo
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   202
#    endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   203
#  endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   204
endif
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   205
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   206
# Serviceability Binaries
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   207
# No SA Support for PPC or zero
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   208
ADD_SA_BINARIES/ppc   =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   209
ADD_SA_BINARIES/ppc64 =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   210
ADD_SA_BINARIES/zero  =
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   211
df1bb606b2ca 8023034: PPC64 (part 14): Implement AIX/PPC64 support in HotSpot makefiles
simonis
parents:
diff changeset
   212
EXPORT_LIST += $(ADD_SA_BINARIES/$(HS_ARCH))