1 # |
1 # |
2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
41 m4_include([basics_windows.m4]) |
41 m4_include([basics_windows.m4]) |
42 m4_include([builddeps.m4]) |
42 m4_include([builddeps.m4]) |
43 # ... then the rest |
43 # ... then the rest |
44 m4_include([boot-jdk.m4]) |
44 m4_include([boot-jdk.m4]) |
45 m4_include([build-performance.m4]) |
45 m4_include([build-performance.m4]) |
|
46 m4_include([flags.m4]) |
46 m4_include([help.m4]) |
47 m4_include([help.m4]) |
47 m4_include([jdk-options.m4]) |
48 m4_include([jdk-options.m4]) |
48 m4_include([libraries.m4]) |
49 m4_include([libraries.m4]) |
49 m4_include([platform.m4]) |
50 m4_include([platform.m4]) |
50 m4_include([source-dirs.m4]) |
51 m4_include([source-dirs.m4]) |
70 # The bootstrapping process needs to solve the "chicken or the egg" problem, |
71 # The bootstrapping process needs to solve the "chicken or the egg" problem, |
71 # thus it jumps back and forth, each time gaining something needed later on. |
72 # thus it jumps back and forth, each time gaining something needed later on. |
72 # |
73 # |
73 ############################################################################### |
74 ############################################################################### |
74 |
75 |
75 # Basic initialization that must happen first of all |
76 # If we are requested to print additional help, do that and then exit. |
|
77 # This must be the very first call. |
|
78 HELP_PRINT_ADDITIONAL_HELP_AND_EXIT |
|
79 |
|
80 # Basic initialization that must happen first of all in the normal process. |
76 BASIC_INIT |
81 BASIC_INIT |
77 BASIC_SETUP_FUNDAMENTAL_TOOLS |
82 BASIC_SETUP_FUNDAMENTAL_TOOLS |
78 |
83 |
79 # Now we can determine OpenJDK build and target platforms. This is required to |
84 # Now we can determine OpenJDK build and target platforms. This is required to |
80 # have early on. |
85 # have early on. |
147 SRCDIRS_SETUP_ALTERNATIVE_TOPDIRS |
152 SRCDIRS_SETUP_ALTERNATIVE_TOPDIRS |
148 SRCDIRS_SETUP_OUTPUT_DIRS |
153 SRCDIRS_SETUP_OUTPUT_DIRS |
149 |
154 |
150 ############################################################################### |
155 ############################################################################### |
151 # |
156 # |
152 # Setup the toolchain (compilers etc), i.e. the tools that need to be |
157 # Setup the toolchain (compilers etc), i.e. tools used to compile and process |
153 # cross-compilation aware. |
158 # native code. |
154 # |
159 # |
155 ############################################################################### |
160 ############################################################################### |
156 |
161 |
157 TOOLCHAIN_SETUP_SYSROOT_AND_OUT_OPTIONS |
162 # First determine the toolchain type (compiler family) |
158 # Locate the actual tools |
163 TOOLCHAIN_DETERMINE_TOOLCHAIN_TYPE |
159 TOOLCHAIN_SETUP_PATHS |
164 |
160 |
165 # Then detect the actual binaries needed |
161 # FIXME: Currently we must test this after paths but before flags. Fix! |
166 TOOLCHAIN_PRE_DETECTION |
162 |
167 TOOLCHAIN_DETECT_TOOLCHAIN_CORE |
163 # And we can test some aspects on the target using configure macros. |
168 TOOLCHAIN_DETECT_TOOLCHAIN_EXTRA |
|
169 TOOLCHAIN_POST_DETECTION |
|
170 |
|
171 # Finally do some processing after the detection phase |
|
172 TOOLCHAIN_SETUP_BUILD_COMPILERS |
|
173 TOOLCHAIN_SETUP_LEGACY |
|
174 TOOLCHAIN_MISC_CHECKS |
|
175 |
|
176 # Setup the JTReg Regression Test Harness. |
|
177 TOOLCHAIN_SETUP_JTREG |
|
178 |
|
179 FLAGS_SETUP_INIT_FLAGS |
|
180 |
|
181 # FIXME: Currently we must test this after toolchain but before flags. Fix! |
|
182 |
|
183 # Now we can test some aspects on the target using configure macros. |
164 PLATFORM_SETUP_OPENJDK_TARGET_BITS |
184 PLATFORM_SETUP_OPENJDK_TARGET_BITS |
165 PLATFORM_SETUP_OPENJDK_TARGET_ENDIANNESS |
185 PLATFORM_SETUP_OPENJDK_TARGET_ENDIANNESS |
166 |
186 |
167 # Configure flags for the tools |
187 # Configure flags for the tools |
168 TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_LIBS |
188 FLAGS_SETUP_COMPILER_FLAGS_FOR_LIBS |
169 TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_OPTIMIZATION |
189 FLAGS_SETUP_COMPILER_FLAGS_FOR_OPTIMIZATION |
170 TOOLCHAIN_SETUP_COMPILER_FLAGS_FOR_JDK |
190 FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK |
171 TOOLCHAIN_SETUP_COMPILER_FLAGS_MISC |
191 FLAGS_SETUP_COMPILER_FLAGS_MISC |
172 |
192 |
173 # Setup debug symbols (need objcopy from the toolchain for that) |
193 # Setup debug symbols (need objcopy from the toolchain for that) |
174 JDKOPT_SETUP_DEBUG_SYMBOLS |
194 JDKOPT_SETUP_DEBUG_SYMBOLS |
175 |
195 |
176 ############################################################################### |
196 ############################################################################### |