make/defs.make

Print this page
rev 9494 : 8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
Contributed-by: Andrew Hughes gnu.andrew@redhat.com


 301   # BUILDARCH is usually the same as SRCARCH, except for sparcv9
 302   BUILDARCH ?= $(SRCARCH)
 303   ifeq ($(BUILDARCH), x86)
 304     ifdef LP64
 305       BUILDARCH = amd64
 306     else
 307       BUILDARCH = i486
 308     endif
 309   endif
 310   ifeq ($(BUILDARCH), sparc)
 311     ifdef LP64
 312       BUILDARCH = sparcv9
 313     endif
 314   endif
 315   ifeq ($(BUILDARCH), ppc)
 316     ifdef LP64
 317       BUILDARCH = ppc64
 318     endif
 319   endif
 320 
 321   # LIBARCH is 1:1 mapping from BUILDARCH



 322   LIBARCH        ?= $(LIBARCH/$(BUILDARCH))

 323   LIBARCH/i486    = i386
 324   LIBARCH/amd64   = amd64
 325   LIBARCH/sparc   = sparc
 326   LIBARCH/sparcv9 = sparcv9
 327   LIBARCH/ia64    = ia64
 328   LIBARCH/ppc64   = ppc64
 329   LIBARCH/aarch64 = aarch64
 330   LIBARCH/zero    = $(ZERO_LIBARCH)
 331 
 332   LP64_ARCH = sparcv9 amd64 ia64 ppc64 aarch64 zero
 333 endif
 334 
 335 # Required make macro settings for all platforms
 336 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)
 337 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR)
 338 MAKE_ARGS += GAMMADIR=$(ABS_GAMMADIR)
 339 MAKE_ARGS += MAKE_VERBOSE=$(MAKE_VERBOSE)
 340 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
 341 
 342 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile




 301   # BUILDARCH is usually the same as SRCARCH, except for sparcv9
 302   BUILDARCH ?= $(SRCARCH)
 303   ifeq ($(BUILDARCH), x86)
 304     ifdef LP64
 305       BUILDARCH = amd64
 306     else
 307       BUILDARCH = i486
 308     endif
 309   endif
 310   ifeq ($(BUILDARCH), sparc)
 311     ifdef LP64
 312       BUILDARCH = sparcv9
 313     endif
 314   endif
 315   ifeq ($(BUILDARCH), ppc)
 316     ifdef LP64
 317       BUILDARCH = ppc64
 318     endif
 319   endif
 320 
 321   # LIBARCH is 1:1 mapping from BUILDARCH, except for PPC64LE:
 322   ifeq ($(ARCH)-$(OPENJDK_TARGET_CPU_ENDIAN),ppc64-little)
 323     LIBARCH      ?= ppc64le
 324   else
 325     LIBARCH      ?= $(LIBARCH/$(BUILDARCH))
 326   endif
 327   LIBARCH/i486    = i386
 328   LIBARCH/amd64   = amd64
 329   LIBARCH/sparc   = sparc
 330   LIBARCH/sparcv9 = sparcv9
 331   LIBARCH/ia64    = ia64
 332   LIBARCH/ppc64   = ppc64
 333   LIBARCH/aarch64 = aarch64
 334   LIBARCH/zero    = $(ZERO_LIBARCH)
 335 
 336   LP64_ARCH = sparcv9 amd64 ia64 ppc64 aarch64 zero
 337 endif
 338 
 339 # Required make macro settings for all platforms
 340 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)
 341 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR)
 342 MAKE_ARGS += GAMMADIR=$(ABS_GAMMADIR)
 343 MAKE_ARGS += MAKE_VERBOSE=$(MAKE_VERBOSE)
 344 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
 345 
 346 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile