2016-03-17 19:03:53 +00:00
|
|
|
#
|
2024-02-26 15:43:47 +00:00
|
|
|
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
2016-03-17 19:03:53 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
# This spec file is used to compile a BUILD_JDK while cross compiling. The
|
|
|
|
# BUILD_JDK runs on the build/host platform and is of the same version as
|
|
|
|
# the main build.
|
|
|
|
|
|
|
|
# First include the real base spec.gmk file
|
|
|
|
include @SPEC@
|
|
|
|
|
|
|
|
CC := @BUILD_CC@
|
|
|
|
CXX := @BUILD_CXX@
|
2019-06-07 16:16:11 +00:00
|
|
|
# Ideally this should be probed by configure but that is tricky to implement,
|
|
|
|
# and this should work in most cases.
|
|
|
|
CPP := @BUILD_CC@ -E
|
2016-03-17 19:03:53 +00:00
|
|
|
LD := @BUILD_LD@
|
2016-09-30 07:05:40 +00:00
|
|
|
LDCXX := @BUILD_LDCXX@
|
2016-03-17 19:03:53 +00:00
|
|
|
AS := @BUILD_AS@
|
|
|
|
NM := @BUILD_NM@
|
|
|
|
AR := @BUILD_AR@
|
2024-02-26 15:43:47 +00:00
|
|
|
LIB := @BUILD_LIB@
|
2016-03-17 19:03:53 +00:00
|
|
|
OBJCOPY := @BUILD_OBJCOPY@
|
|
|
|
STRIP := @BUILD_STRIP@
|
|
|
|
SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
|
|
|
|
SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
|
|
|
|
|
|
|
|
# These directories should not be moved to BUILDJDK_OUTPUTDIR
|
2017-09-25 08:32:00 +00:00
|
|
|
HOTSPOT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))
|
2019-06-07 16:16:11 +00:00
|
|
|
BUILDTOOLS_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(BUILDTOOLS_OUTPUTDIR))
|
2017-09-25 08:32:00 +00:00
|
|
|
SUPPORT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
|
|
|
|
JDK_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
|
|
|
|
IMAGES_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR))
|
2016-03-17 19:03:53 +00:00
|
|
|
|
|
|
|
OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
|
|
|
|
OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
|
2020-10-13 09:35:58 +00:00
|
|
|
OPENJDK_BUILD_LIBC := @OPENJDK_BUILD_LIBC@
|
2016-03-17 19:03:53 +00:00
|
|
|
OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
|
|
|
|
OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
|
|
|
|
OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
|
|
|
|
OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
|
|
|
|
OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
|
2020-10-13 09:35:58 +00:00
|
|
|
OPENJDK_TARGET_LIBC := @OPENJDK_BUILD_LIBC@
|
2017-12-20 17:14:06 +00:00
|
|
|
OPENJDK_TARGET_OS_INCLUDE_SUBDIR := @OPENJDK_BUILD_OS_INCLUDE_SUBDIR@
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-04-08 11:14:23 +00:00
|
|
|
HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
|
|
|
|
HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
|
|
|
|
HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
|
|
|
|
HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
|
|
|
|
HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
|
2020-10-13 09:35:58 +00:00
|
|
|
HOTSPOT_TARGET_LIBC := @HOTSPOT_BUILD_LIBC@
|
2016-04-08 11:14:23 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
|
|
|
|
CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
|
|
|
|
LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
|
|
|
|
CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
|
|
|
|
CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
|
|
|
|
LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
|
|
|
|
|
2016-04-08 11:14:23 +00:00
|
|
|
JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
|
|
|
|
JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
|
|
|
|
JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
|
|
|
|
JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@
|
|
|
|
|
2019-02-05 17:56:19 +00:00
|
|
|
FDLIBM_CFLAGS := @OPENJDK_BUILD_FDLIBM_CFLAGS@
|
|
|
|
|
2019-06-07 16:16:11 +00:00
|
|
|
INTERIM_LANGTOOLS_ARGS := $(subst $(OUTPUTDIR),$(BUILDJDK_OUTPUTDIR),$(INTERIM_LANGTOOLS_ARGS))
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# The compiler for the build platform is likely not warning compatible with the official
|
|
|
|
# compiler.
|
|
|
|
WARNINGS_AS_ERRORS := false
|
|
|
|
DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
|
|
|
|
|
|
|
|
# Save speed and disk space by not enabling debug symbols for the buildjdk
|
|
|
|
ENABLE_DEBUG_SYMBOLS := false
|
|
|
|
|
2016-12-06 10:38:05 +00:00
|
|
|
JVM_VARIANTS := server
|
2016-12-08 15:18:03 +00:00
|
|
|
JVM_VARIANT_MAIN := server
|
2020-02-28 08:53:18 +00:00
|
|
|
JVM_FEATURES_server := cds compiler1 compiler2 g1gc serialgc
|
2016-12-06 10:38:05 +00:00
|
|
|
|
|
|
|
# Some users still set EXTRA_*FLAGS on the make command line. Must
|
|
|
|
# make sure to override that when building buildjdk.
|
|
|
|
override EXTRA_CFLAGS :=
|
|
|
|
override EXTRA_CXXFLAGS :=
|
|
|
|
override EXTRA_LDFLAGS :=
|
2023-04-28 12:31:48 +00:00
|
|
|
|
|
|
|
# hsdis is not needed
|
|
|
|
HSDIS_BACKEND := none
|
|
|
|
ENABLE_HSDIS_BUNDLING := false
|