ohair@478: # ohair@478: # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. ohair@478: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@478: # ohair@478: # This code is free software; you can redistribute it and/or modify it ohair@478: # under the terms of the GNU General Public License version 2 only, as ohair@478: # published by the Free Software Foundation. Oracle designates this ohair@478: # particular file as subject to the "Classpath" exception as provided ohair@478: # by Oracle in the LICENSE file that accompanied this code. ohair@478: # ohair@478: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@478: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@478: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@478: # version 2 for more details (a copy is included in the LICENSE file that ohair@478: # accompanied this code). ohair@478: # ohair@478: # You should have received a copy of the GNU General Public License version ohair@478: # 2 along with this work; if not, write to the Free Software Foundation, ohair@478: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@478: # ohair@478: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@478: # or visit www.oracle.com if you need additional information or have any ohair@478: # questions. ohair@478: # ohair@478: ohair@478: # Support for building boot cycle builds ohair@478: ohair@478: # First include the real base spec.gmk file ohair@478: include @SPEC@ ohair@478: ohair@478: # Check that the user did not try to specify a different java to use for compiling. ohair@478: ifneq ($(firstword $(SJAVAC_SERVER_JAVA)),$(firstword $(JAVA))) ohair@478: $(error Bootcycle builds are not possible if --with-sjavac-server-java is specified) ohair@478: endif ohair@478: ohair@478: # Override specific values to do a boot cycle build ohair@478: ohair@478: # The bootcycle build has a different output directory ohair@478: BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build ohair@478: ohair@478: # Use a different Boot JDK ohair@478: BOOT_JDK:=@BUILD_OUTPUT@/images/j2sdk-image ohair@478: BOOT_RTJAR:=@BUILD_OUTPUT@/images/j2sdk-image/jre/lib/rt.jar