hg: build-infra/jdk8: Cleaned up HOST_... variables.
Fredrik Öhrström
fredrik.ohrstrom at oracle.com
Wed Mar 28 04:17:54 PDT 2012
2012-03-28 12:42, David Holmes skrev:
> Hi Fredrik,
>
> If these:
>
> + # LEGACY_HOST_CPU1=i586,amd64,sparc,sparcv9,arm,arm64...
> + # LEGACY_HOST_CPU2=i386,amd64,sparc,sparcv9,arm,arm64...
> + # LEGACY_HOST_CPU3=sparcv9,amd64 (but only on solaris)
>
> equate to BUILDARCH, LIBARCH, PLATFORM_ARCH etc, might it not be
> better to name them more descriptively? No one will recall what
> LEGACY_HOST_CPU2 relates to when they see it in a build file.
The actual variables that are used in the Makefiles are still called
ARCH and LIBARCH and ISA_DIR
You can see that if you look in spec.gmk.in. LEGACY_HOST_CPU1 et al are
not available outside of configure.
The naming of LEGACY_HOST_CPU1 in configure.ac was intentional, since I
wanted
to demonstrate that these variants of the i?86,x86_64 naming are all
derived from HOST_CPU.
It makes it easy to see that it is just variations of the naming, that
is caused for historical reasons.
Just for fun, this is my examination of the usage of:
i386,i485,i586,i686,amd64,x86_64,x86,X86,x64 and X64
in the old makefiles.
# Only in jdk
PLATFORM=bsd,linux,macosx,solaris,windows
# And its equivalent in hotspot
OS_FAMILY=bsd,linux,macosx,solaris,windows
# And another one in the jdk.
OS_NAME=freebsd,netbsd,openbsd,nt,darwin,linux
# NOTE! In hotspot PLATFORM means something else,
# used for runtime images and bundles.
PLATFORM=solaris-sparcv9,linux-i586,bsd-amd64
# And its slight variant...
VM_PLATFORM=solaris_sparcv9,linux_i486,bsd_amd64
# ARCH exists both in hotspot and the JDK
ARCH=i586,i686,sparc,sparcv9,amd64,ia64,sparc,ppc,(and x64 in a test)
# In hotspot, used for: jre/lib/i386)
LIBARCH=i386,sparc,sparv9,amd64,ia64
# In hotspot, where to put the binaries, eg:
<outputdir>/hotspot/outputdir/Linux_i486_compiler1
BUILDARCH=i486,amd64,sparc,sparcv9,arm,ppc
# In hotspot, when building zero: ZERO_LIBARCH and VARIANTARCH
ZERO_LIBARCH=i386,amd64,sparc,sparcv9,arm,ppc
# VARIANTARCH defaults to BUILDARCH, but is explicitly set when building
zero/shark.
VARIANTARCH=i486,amd64,sparc,sparcv9,arm,ppc
# In hotspot, source directory names
SRCARCH=x86,sparc
# In hotspot
Platform_arch=x86,sparc,ppc,arm
Platform_arch_model=x86_32,x86_64
Platform_os_family=bsd,linux,solaris,windows
# Used in hotspot and jdk when both 32 and 64 libraries are in the same
system.
ISA_DIR= solaris only: /sparcv9 or /amd64
LIBARCH32=solaris only: sparc or i386
LIBARCH64=solaris only: sparcv9 or amd64
# In hotspot, thos archs that have 64 bit pointers.
LP64_ARCH = sparcv9 amd64 ia64 zero
# In the jdk, primarily used to find tools in nfs-mount /java/devtools
# but also used for ld ORIGIN setting in linux and in the jli makefile.
ARCH_FAMILY=sparc,i586,amd64,x86_64
# Used in both hotspot and the jdk.
ARCH_DATA_MODEL=32,64
# Used inside a jdk makefile to set ARCH_DATA_MODEL and ARCH...
PROC_ARCH=IA64,X86,X64
# Sets the os.arch property encoded in the java launcer.
ARCHPROP=sparc,x86
# In some way or another, sets the os.name property
SYSTEM_UNAME=SunOS,Linux,Darwin,Windows_NT
//Fredrik
More information about the build-infra-dev
mailing list