makefiles/CopyFiles.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Sdiff makefiles

makefiles/CopyFiles.gmk

Print this page


   1 #
   2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. 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 it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 277 
 278 #
 279 # How to install jvm.cfg.
 280 #
 281 ifeq ($(JVM_VARIANT_ZERO), true)
 282     JVMCFG_ARCH := zero
 283 else
 284     JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
 285 endif
 286 
 287 ifeq ($(OPENJDK_TARGET_OS),macosx)
 288   JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
 289 else
 290   JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
 291 endif
 292 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
 293 JVMCFG := $(JVMCFG_DIR)/jvm.cfg
 294 
 295 
 296 ifeq ($(OPENJDK_TARGET_CPU_BITS),32)
 297     # On 32 bit machines, we can have client and/or server libjvms installed.
 298     # Since the currently committed jvm.cfg expects clientANDserver, we need 
 299     # to patch the jvm.cfg when we have built only a client or only a server.
 300     # This should also support -kernel, -zero and -zeroshark.
 301     ifeq ($(JVM_VARIANTS),$(COMMA)client$(COMMA))
 302         # Create a patched jvm.cfg to use -client by default and alias -server to -client.












 303         $(JVMCFG):
 304                 $(MKDIR) -p $(@D)
 305                 $(RM) $(JVMCFG)
 306                 $(PRINTF) "-client KNOWN\n">$(JVMCFG)
 307                 $(PRINTF) "-server ALIASED_TO -client\n">>$(JVMCFG)
 308                 $(PRINTF) "-hotspot ALIASED_TO -client\n">>$(JVMCFG)
 309                 $(PRINTF) "-classic WARN\n">>$(JVMCFG)
 310                 $(PRINTF) "-native ERROR\n">>$(JVMCFG)
 311                 $(PRINTF) "-green ERROR\n">>$(JVMCFG)
 312 







 313     else
 314         ifeq ($(JVM_VARIANTS),$(COMMA)server$(COMMA))
 315             # Create a patched jvm.cfg to use -server by default and alias -client to -server.
 316 
 317             $(JVMCFG):
 318                 $(MKDIR) -p $(@D)
 319                 $(RM) $(JVMCFG)
 320                 $(PRINTF) "-server KNOWN\n">$(JVMCFG)
 321                 $(PRINTF) "-client IGNORE\n">>$(JVMCFG)
 322                 $(PRINTF) "-hotspot IGNORE\n">>$(JVMCFG)
 323                 $(PRINTF) "-classic WARN\n">>$(JVMCFG)
 324                 $(PRINTF) "-native ERROR\n">>$(JVMCFG)
 325                 $(PRINTF) "-green ERROR\n">>$(JVMCFG)
 326         else
 327             # Use the default jvm.cfg for this 32 bit setup. 
 328             $(JVMCFG): $(JVMCFG_SRC)
 329                 $(call install-file)

 330         endif
 331     endif



 332 else
 333     # Use the default jvm.cfg for this 64 bit setup.
 334     $(JVMCFG): $(JVMCFG_SRC)
 335                 $(call install-file)
 336 endif
 337 
 338 COPY_FILES += $(JVMCFG)
 339 
 340 ##########################################################################################
 341 
 342 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
 343 PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security
 344 
 345 $(PROPS_DST): $(PROPS_SRC)
 346         $(call install-file)
 347 
 348 COPY_FILES += $(PROPS_DST)
 349 
 350 ##########################################################################################
 351 


   1 #
   2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. 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 it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 277 
 278 #
 279 # How to install jvm.cfg.
 280 #
 281 ifeq ($(JVM_VARIANT_ZERO), true)
 282     JVMCFG_ARCH := zero
 283 else
 284     JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
 285 endif
 286 
 287 ifeq ($(OPENJDK_TARGET_OS),macosx)
 288   JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
 289 else
 290   JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
 291 endif
 292 JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
 293 JVMCFG := $(JVMCFG_DIR)/jvm.cfg
 294 
 295 
 296 ifeq ($(OPENJDK_TARGET_CPU_BITS),32)
 297   # On 32-bit machines we have three potential VMs: client, server and minimal.
 298   # Historically we usually have both client and server and so that is what the
 299   # committed jvm.cfg expects (including platform specific ergonomics switches
 300   # to decide whether to use client or server by default). So when we have anything
 301   # other than client and server we need to define a new jvm.cfg file.
 302   # The main problem is deciding whether to use aliases for the VMs that are not
 303   # present and the current position is that we add aliases for client and server, but
 304   # not for minimal.
 305   # To do: should this also support, -zero and -zeroshark?
 306 
 307   CLIENT_AND_SERVER := $(and $(findstring true,$(JVM_VARIANT_SERVER)),$(findstring true,$(JVM_VARIANT_CLIENT)))
 308 
 309   ifeq ($(CLIENT_AND_SERVER), true)
 310     # Use the committed jvm.cfg for this 32 bit setup (the minimal
 311     # VM is already KNOWN on platforms that potentially support it)
 312     $(JVMCFG): $(JVMCFG_SRC)
 313         $(call install-file)
 314   else
 315     $(JVMCFG):
 316         $(MKDIR) -p $(@D)
 317         $(RM) $(@)






 318 
 319     # Now check for other permutations
 320     ifeq ($(JVM_VARIANT_SERVER), true)
 321         $(PRINTF) "-server KNOWN\n">>$(@)
 322         $(PRINTF) "-client ALIASED_TO -server\n">>$(@)
 323         ifeq ($(JVM_VARIANT_MINIMAL1), true)
 324             $(PRINTF) "-minimal KNOWN\n">>$(@)
 325         endif
 326     else
 327         ifeq ($(JVM_VARIANT_CLIENT), true)
 328             $(PRINTF) "-client KNOWN\n">>$(@)
 329             $(PRINTF) "-server ALIASED_TO -client\n">>$(@)
 330             ifeq ($(JVM_VARIANT_MINIMAL1), true)
 331                 $(PRINTF) "-minimal KNOWN\n">>$(@)
 332             endif






 333         else
 334             ifeq ($(JVM_VARIANT_MINIMAL1), true)
 335                 $(PRINTF) "-minimal KNOWN\n">>$(@)
 336                 $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
 337                 $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
 338             endif
 339         endif
 340     endif
 341   endif
 342 
 343 else
 344     # Use the default jvm.cfg for this 64 bit setup.
 345     $(JVMCFG): $(JVMCFG_SRC)
 346         $(call install-file)
 347 endif
 348 
 349 COPY_FILES += $(JVMCFG)
 350 
 351 ##########################################################################################
 352 
 353 PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS)
 354 PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security
 355 
 356 $(PROPS_DST): $(PROPS_SRC)
 357         $(call install-file)
 358 
 359 COPY_FILES += $(PROPS_DST)
 360 
 361 ##########################################################################################
 362 


makefiles/CopyFiles.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File