make/copy/Copy-java.base.gmk
changeset 50084 44b64fc0baa3
parent 50078 5730ca794584
child 50129 7db531b83661
equal deleted inserted replaced
50083:07015dd8157f 50084:44b64fc0baa3
    95   # Allow override by ALT_JVMCFG_SRC if it exists
    95   # Allow override by ALT_JVMCFG_SRC if it exists
    96   JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JVMCFG_SRC))
    96   JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JVMCFG_SRC))
    97 endif
    97 endif
    98 JVMCFG := $(LIB_DST_DIR)/jvm.cfg
    98 JVMCFG := $(LIB_DST_DIR)/jvm.cfg
    99 
    99 
   100 # We have three potential VMs: client, server and minimal.
   100 ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
   101 # Historically we usually have both client and server and so that is what the
       
   102 # committed jvm.cfg expects (including platform specific ergonomics switches
       
   103 # to decide whether to use client or server by default). So when we have anything
       
   104 # other than client and server we need to define a new jvm.cfg file.
       
   105 # The main problem is deciding whether to use aliases for the VMs that are not
       
   106 # present and the current position is that we add aliases for client and server, but
       
   107 # not for minimal.
       
   108 CLIENT_AND_SERVER := $(call check-jvm-variant, client)+$(call check-jvm-variant, server)
       
   109 ifeq ($(CLIENT_AND_SERVER), true+true)
       
   110   COPY_JVM_CFG_FILE := true
   101   COPY_JVM_CFG_FILE := true
   111 else
   102 else
   112   # For zero, the default jvm.cfg file is sufficient
   103   # On 32-bit machines we have three potential VMs: client, server and minimal.
   113   ifeq ($(call check-jvm-variant, zero), true)
   104   # Historically we usually have both client and server and so that is what the
       
   105   # committed jvm.cfg expects (including platform specific ergonomics switches
       
   106   # to decide whether to use client or server by default). So when we have anything
       
   107   # other than client and server we need to define a new jvm.cfg file.
       
   108   # The main problem is deciding whether to use aliases for the VMs that are not
       
   109   # present and the current position is that we add aliases for client and server, but
       
   110   # not for minimal.
       
   111   CLIENT_AND_SERVER := $(call check-jvm-variant, client)+$(call check-jvm-variant, server)
       
   112   ifeq ($(CLIENT_AND_SERVER), true+true)
   114     COPY_JVM_CFG_FILE := true
   113     COPY_JVM_CFG_FILE := true
       
   114   else
       
   115     # For zero, the default jvm.cfg file is sufficient
       
   116     ifeq ($(call check-jvm-variant, zero), true)
       
   117       COPY_JVM_CFG_FILE := true
       
   118     endif
   115   endif
   119   endif
   116 endif
   120 endif
   117 
   121 
   118 ifeq ($(COPY_JVM_CFG_FILE), true)
   122 ifeq ($(COPY_JVM_CFG_FILE), true)
   119   $(JVMCFG): $(JVMCFG_SRC)
   123   $(JVMCFG): $(JVMCFG_SRC)