Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/aix/makefiles/defs.make
32284 views
#1# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.2# Copyright 2012, 2013 SAP AG. All rights reserved.3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4#5# This code is free software; you can redistribute it and/or modify it6# under the terms of the GNU General Public License version 2 only, as7# published by the Free Software Foundation.8#9# This code is distributed in the hope that it will be useful, but WITHOUT10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12# version 2 for more details (a copy is included in the LICENSE file that13# accompanied this code).14#15# You should have received a copy of the GNU General Public License version16# 2 along with this work; if not, write to the Free Software Foundation,17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18#19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20# or visit www.oracle.com if you need additional information or have any21# questions.22#23#2425# The common definitions for hotspot AIX builds.26# Include the top level defs.make under make directory instead of this one.27# This file is included into make/defs.make.2829SLASH_JAVA ?= /java3031# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name32#ARCH:=$(shell uname -m)33PATH_SEP = :34ifeq ($(LP64), 1)35ARCH_DATA_MODEL ?= 6436else37ARCH_DATA_MODEL ?= 3238endif3940ifeq ($(ARCH_DATA_MODEL), 64)41ARCH = ppc6442else43ARCH = ppc44endif4546# PPC47ifeq ($(ARCH), ppc)48#ARCH_DATA_MODEL = 3249PLATFORM = aix-ppc50VM_PLATFORM = aix_ppc51HS_ARCH = ppc52endif5354# PPC6455ifeq ($(ARCH), ppc64)56#ARCH_DATA_MODEL = 6457MAKE_ARGS += LP64=158PLATFORM = aix-ppc6459VM_PLATFORM = aix_ppc6460HS_ARCH = ppc61endif6263# On 32 bit aix we build server and client, on 64 bit just server.64ifeq ($(JVM_VARIANTS),)65ifeq ($(ARCH_DATA_MODEL), 32)66JVM_VARIANTS:=client,server67JVM_VARIANT_CLIENT:=true68JVM_VARIANT_SERVER:=true69else70JVM_VARIANTS:=server71JVM_VARIANT_SERVER:=true72endif73endif7475# determine if HotSpot is being built in JDK6 or earlier version76JDK6_OR_EARLIER=077ifeq "$(shell expr \( '$(JDK_MAJOR_VERSION)' != '' \& '$(JDK_MINOR_VERSION)' != '' \& '$(JDK_MICRO_VERSION)' != '' \))" "1"78# if the longer variable names (newer build style) are set, then check those79ifeq "$(shell expr \( $(JDK_MAJOR_VERSION) = 1 \& $(JDK_MINOR_VERSION) \< 7 \))" "1"80JDK6_OR_EARLIER=181endif82else83# the longer variables aren't set so check the shorter variable names84ifeq "$(shell expr \( '$(JDK_MAJOR_VER)' = 1 \& '$(JDK_MINOR_VER)' \< 7 \))" "1"85JDK6_OR_EARLIER=186endif87endif8889ifeq ($(JDK6_OR_EARLIER),0)90# Full Debug Symbols is supported on JDK7 or newer.91# The Full Debug Symbols (FDS) default for BUILD_FLAVOR == product92# builds is enabled with debug info files ZIP'ed to save space. For93# BUILD_FLAVOR != product builds, FDS is always enabled, after all a94# debug build without debug info isn't very useful.95# The ZIP_DEBUGINFO_FILES option only has meaning when FDS is enabled.96#97# If you invoke a build with FULL_DEBUG_SYMBOLS=0, then FDS will be98# disabled for a BUILD_FLAVOR == product build.99#100# Note: Use of a different variable name for the FDS override option101# versus the FDS enabled check is intentional (FULL_DEBUG_SYMBOLS102# versus ENABLE_FULL_DEBUG_SYMBOLS). For auto build systems that pass103# in options via environment variables, use of distinct variables104# prevents strange behaviours. For example, in a BUILD_FLAVOR !=105# product build, the FULL_DEBUG_SYMBOLS environment variable will be106# 0, but the ENABLE_FULL_DEBUG_SYMBOLS make variable will be 1. If107# the same variable name is used, then different values can be picked108# up by different parts of the build. Just to be clear, we only need109# two variable names because the incoming option value can be110# overridden in some situations, e.g., a BUILD_FLAVOR != product111# build.112113# Due to the multiple sub-make processes that occur this logic gets114# executed multiple times. We reduce the noise by at least checking that115# BUILD_FLAVOR has been set.116ifneq ($(BUILD_FLAVOR),)117ifeq ($(BUILD_FLAVOR), product)118FULL_DEBUG_SYMBOLS ?= 1119ENABLE_FULL_DEBUG_SYMBOLS = $(FULL_DEBUG_SYMBOLS)120else121# debug variants always get Full Debug Symbols (if available)122ENABLE_FULL_DEBUG_SYMBOLS = 1123endif124_JUNK_ := $(shell \125echo >&2 "INFO: ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)")126# since objcopy is optional, we set ZIP_DEBUGINFO_FILES later127128ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)129# Default OBJCOPY comes from GNU Binutils on Linux130ifeq ($(CROSS_COMPILE_ARCH),)131DEF_OBJCOPY=/usr/bin/objcopy132else133# Assume objcopy is part of the cross-compilation toolset134ifneq ($(ALT_COMPILER_PATH),)135DEF_OBJCOPY=$(ALT_COMPILER_PATH)/objcopy136endif137endif138OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))139ifneq ($(ALT_OBJCOPY),)140_JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)")141OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))142endif143144ifeq ($(OBJCOPY),)145_JUNK_ := $(shell \146echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo files. You may need to set ALT_OBJCOPY.")147ENABLE_FULL_DEBUG_SYMBOLS=0148_JUNK_ := $(shell \149echo >&2 "INFO: ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)")150else151_JUNK_ := $(shell \152echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo files.")153154# Library stripping policies for .debuginfo configs:155# all_strip - strips everything from the library156# min_strip - strips most stuff from the library; leaves minimum symbols157# no_strip - does not strip the library at all158#159# Oracle security policy requires "all_strip". A waiver was granted on160# 2011.09.01 that permits using "min_strip" in the Java JDK and Java JRE.161#162# Currently, STRIP_POLICY is only used when Full Debug Symbols is enabled.163#164STRIP_POLICY ?= min_strip165166_JUNK_ := $(shell \167echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)")168169ZIP_DEBUGINFO_FILES ?= 1170171_JUNK_ := $(shell \172echo >&2 "INFO: ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)")173endif174endif # ENABLE_FULL_DEBUG_SYMBOLS=1175endif # BUILD_FLAVOR176endif # JDK_6_OR_EARLIER177178# unused JDK_INCLUDE_SUBDIR=aix179180# Library suffix181LIBRARY_SUFFIX=so182183EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html184185# client and server subdirectories have symbolic links to ../libjsig.so186EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.$(LIBRARY_SUFFIX)187#ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)188# ifeq ($(ZIP_DEBUGINFO_FILES),1)189# EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.diz190# else191# EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.debuginfo192# endif193#endif194EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server195EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client196EXPORT_MINIMAL_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/minimal197198ifeq ($(findstring true, $(JVM_VARIANT_SERVER) $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK) $(JVM_VARIANT_CORE)), true)199EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt200EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.$(LIBRARY_SUFFIX)201# ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)202# ifeq ($(ZIP_DEBUGINFO_FILES),1)203# EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.diz204# else205# EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.debuginfo206# endif207# endif208endif209210ifeq ($(JVM_VARIANT_CLIENT),true)211EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt212EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.$(LIBRARY_SUFFIX)213# ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)214# ifeq ($(ZIP_DEBUGINFO_FILES),1)215# EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.diz216# else217# EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.debuginfo218# endif219# endif220endif221222# Serviceability Binaries223# No SA Support for PPC or zero224ADD_SA_BINARIES/ppc =225ADD_SA_BINARIES/ppc64 =226ADD_SA_BINARIES/zero =227228EXPORT_LIST += $(ADD_SA_BINARIES/$(HS_ARCH))229230231232233