]>
Commit | Line | Data |
---|---|---|
39236c6e A |
1 | # -*- mode: makefile;-*- |
2 | # | |
39037602 | 3 | # Copyright (C) 2010-2016 Apple Inc. All rights reserved. |
39236c6e A |
4 | # |
5 | # MakeInc.top is the top-level makefile for the xnu | |
6 | # build system. All the main XBS targets | |
7 | # (like "installhdrs") are defined here, as | |
39037602 | 8 | # well as globals that can be overridden on |
39236c6e A |
9 | # the command-line by the user. |
10 | # | |
11 | # This makefile's main purpose is to bootstrap | |
12 | # the user's intent ("build these 3 kernels") | |
13 | # into 3 single-architecture builds that each | |
14 | # invoke the recursive make build system. | |
15 | # As such, we have no knowledge of how to build | |
16 | # a kernel or perform actions other than | |
17 | # invoking a sub-make with a different | |
18 | # current directory, makefile, and target. One | |
19 | # side effect of this is that each | |
20 | # single-architecture build is responsible for | |
21 | # inserting its build products into the final | |
22 | # multi-architecture output files. To avoid | |
39037602 | 23 | # races, these aggregating stages for |
39236c6e | 24 | # "primary" build configs are done in serial. |
39037602 | 25 | # |
39236c6e A |
26 | |
27 | export MakeInc_cmd=${VERSDIR}/makedefs/MakeInc.cmd | |
28 | ||
29 | include $(MakeInc_cmd) | |
30 | ||
31 | ||
32 | # | |
33 | # Architecture Configuration options | |
34 | # | |
35 | ||
36 | # Default to current kernel architecture | |
3e170ce0 A |
37 | |
38 | ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),) | |
39236c6e | 39 | override DEFAULT_ARCH_CONFIG := ARM |
3e170ce0 | 40 | else ifneq ($(filter $(SUPPORTED_SIMULATOR_PLATFORMS),$(PLATFORM)),) |
39236c6e A |
41 | override DEFAULT_ARCH_CONFIG := X86_64 |
42 | else | |
43 | override DEFAULT_ARCH_CONFIG := X86_64 | |
44 | endif | |
45 | ||
39236c6e A |
46 | # Accept either explicit ARCH_CONFIGS or XBS-style RC_ARCHS |
47 | ifndef ARCH_CONFIGS | |
48 | ifdef RC_ARCHS | |
39037602 | 49 | ARCH_CONFIGS := $(shell printf "%s" "$(RC_ARCHS)" | $(TR) a-z A-Z | $(TR) " " "\n" | sort -u | $(TR) "\n" " ") |
39236c6e A |
50 | else |
51 | ARCH_CONFIGS := DEFAULT | |
52 | endif | |
53 | endif | |
54 | ||
55 | # | |
39037602 | 56 | # Kernel Configuration options |
39236c6e A |
57 | # |
58 | ||
5ba3f43e A |
59 | DEFAULT_PRODUCT_CONFIGS := |
60 | ||
39236c6e A |
61 | ifeq ($(RC_ProjectName),xnu_debug) |
62 | override DEFAULT_KERNEL_CONFIG := DEBUG | |
5ba3f43e A |
63 | else ifeq ($(RC_ProjectName),xnu_kasan) |
64 | override KERNEL_CONFIGS := KASAN | |
3e170ce0 | 65 | else ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),) |
fe8ab488 A |
66 | override DEFAULT_KERNEL_CONFIG := DEVELOPMENT |
67 | else ifeq ($(PLATFORM),MacOSX) | |
39236c6e A |
68 | override DEFAULT_KERNEL_CONFIG := DEVELOPMENT |
69 | else | |
70 | override DEFAULT_KERNEL_CONFIG := RELEASE | |
71 | endif | |
72 | ||
73 | # If KERNEL_CONFIGS is specified it should override default | |
74 | ifndef KERNEL_CONFIGS | |
75 | KERNEL_CONFIGS := DEFAULT | |
76 | endif | |
77 | ||
5ba3f43e A |
78 | # If PRODUCT_CONFIGS is specified it should override default |
79 | ifndef PRODUCT_CONFIGS | |
80 | PRODUCT_CONFIGS := $(DEFAULT_PRODUCT_CONFIGS) | |
81 | endif | |
82 | ||
39236c6e | 83 | # |
39037602 | 84 | # Machine Configuration options |
39236c6e A |
85 | # |
86 | ||
87 | override DEFAULT_I386_MACHINE_CONFIG := NONE | |
88 | override DEFAULT_X86_64_MACHINE_CONFIG := NONE | |
fe8ab488 | 89 | override DEFAULT_X86_64H_MACHINE_CONFIG := NONE |
d9a64523 A |
90 | override DEFAULT_ARM_MACHINE_CONFIG := T8002 |
91 | override DEFAULT_ARM64_MACHINE_CONFIG := S5L8960X | |
39236c6e A |
92 | |
93 | # This is typically never specified (TARGET_CONFIGS is used) | |
94 | ifndef MACHINE_CONFIGS | |
39037602 | 95 | MACHINE_CONFIGS := DEFAULT |
39236c6e A |
96 | endif |
97 | ||
98 | # | |
39037602 | 99 | # Target configuration options. NOTE - target configurations will |
39236c6e A |
100 | # override ARCH_CONFIGS and KERNEL_CONFIGS and MACHINE_CONFIGS. |
101 | # | |
39037602 | 102 | # Target configs come in groups of three parameters. The first is the |
39236c6e A |
103 | # kernel configuration, the second is the architecture configuration, |
104 | # and the third is the machine configuration. You may pass in as | |
105 | # many groups of configurations as you wish. Each item passed in is | |
106 | # seperated by whitespace. | |
107 | # | |
108 | # Example: | |
109 | # TARGET_CONFIGS="release ppc default debug i386 default release arm MX31ADS" | |
110 | # Parameters may be in upper or lower case (they are converted to upper). | |
111 | # | |
39037602 | 112 | # "default" parameter is a special case. It means use the default value for |
39236c6e A |
113 | # that parameter. Here are the default values for each configuration: |
114 | # | |
115 | # default kernel configuration = DEFAULT_KERNEL_CONFIG | |
116 | # default architecture configuration = system architecture where you are running make. | |
117 | ||
d9a64523 A |
118 | ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),) |
119 | ||
120 | # Defaults for "make all_embedded" | |
121 | ifeq ($(KERNEL_CONFIGS),DEFAULT) | |
122 | KERNEL_CONFIGS_EMBEDDED := RELEASE DEVELOPMENT | |
123 | else | |
124 | KERNEL_CONFIGS_EMBEDDED := $(KERNEL_CONFIGS) | |
125 | endif | |
126 | ||
127 | ifeq ($(ARCH_CONFIGS),DEFAULT) | |
128 | ARCH_CONFIGS_EMBEDDED := ARM ARM64 | |
129 | else | |
130 | ARCH_CONFIGS_EMBEDDED := $(strip $(shell echo $(ARCH_CONFIGS) | $(TR) a-z A-Z)) | |
131 | endif | |
132 | ||
133 | # Find supported products from the device map | |
134 | DEVICEMAP_PRODUCTS_ARMV7 := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) \ | |
135 | -query 'SELECT DISTINCT TargetType \ | |
136 | FROM Files \ | |
137 | INNER JOIN Manifests USING (manifestID) \ | |
138 | INNER JOIN Targets USING (Target) \ | |
139 | WHERE (KernelMachOArchitecture LIKE "armv7" \ | |
140 | AND fileType in ("KernelCache", "RestoreKernelCache"))') | |
141 | DEVICEMAP_PRODUCTS_ARMV7S := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) \ | |
142 | -query 'SELECT DISTINCT TargetType \ | |
143 | FROM Files \ | |
144 | INNER JOIN Manifests USING (manifestID) \ | |
145 | INNER JOIN Targets USING (Target) \ | |
146 | WHERE (KernelMachOArchitecture LIKE "armv7s" \ | |
147 | AND fileType in ("KernelCache", "RestoreKernelCache"))') | |
148 | DEVICEMAP_PRODUCTS_ARMV7K := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) \ | |
149 | -query 'SELECT DISTINCT TargetType \ | |
150 | FROM Files \ | |
151 | INNER JOIN Manifests USING (manifestID) \ | |
152 | INNER JOIN Targets USING (Target) \ | |
153 | WHERE (KernelMachOArchitecture LIKE "armv7k" \ | |
154 | AND fileType in ("KernelCache", "RestoreKernelCache"))') | |
155 | DEVICEMAP_PRODUCTS_ARM := $(DEVICEMAP_PRODUCTS_ARMV7) $(DEVICEMAP_PRODUCTS_ARMV7S) $(DEVICEMAP_PRODUCTS_ARMV7K) | |
156 | ||
157 | ||
158 | DEVICEMAP_PRODUCTS_ARM64 := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) \ | |
159 | -query 'SELECT DISTINCT TargetType \ | |
160 | FROM Files \ | |
161 | INNER JOIN Manifests USING (manifestID) \ | |
162 | INNER JOIN Targets USING (Target) \ | |
163 | WHERE (KernelMachOArchitecture LIKE "arm64" \ | |
164 | AND fileType in ("KernelCache", "RestoreKernelCache"))') | |
165 | ||
166 | ||
167 | # Generate a list of mappings of the form "n75:arm;t8002" based on the device map | |
168 | DEVICEMAP_PRODUCT_SOC_MAPPINGS := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) -query SELECT DISTINCT TargetType, KernelMachOArchitecture, KernelPlatform FROM Targets | awk -F\| '{ if ($$2 ~ /armv[0-9][a-z]?/) { print $$1 ":arm;" $$3 } else if ($$2 ~ /arm64[a-z]?/) { print $$1 ":arm64;" $$3 ";" $$4} else { print $$1 ":" $$2 ";" $$3 ";" $$4} }' ) | |
169 | ||
170 | # Map a product like "n75" to "arm;t8002" | |
171 | # $(1) is a product name in lower case | |
172 | function_lookup_product = $(call function_substitute_word_with_replacement, \ | |
173 | $(1), \ | |
174 | $(DEVICEMAP_PRODUCT_SOC_MAPPINGS), \ | |
175 | unknown_arch_for_$(1);unknown_platform_for_$(1) \ | |
176 | ) | |
177 | ||
178 | # Generate a list of mappings for products that use a different platform for their kernel configuration than their true platform | |
179 | # of the form "n71m:arm64;s8000;s8003". The 4th element is the true SoC platform, which will get an on-disk copy, while the | |
180 | # kernel's recursive build system will build the 3rd element as the KernelPlatform | |
181 | DEVICEMAP_PRODUCT_SOC_ALIASES := $(shell $(EMBEDDED_DEVICE_MAP) -db $(EDM_DBPATH) -query SELECT DISTINCT TargetType, KernelMachOArchitecture, KernelPlatform, Platform FROM Targets WHERE KernelPlatform "!=" Platform | awk -F\| '{ if ($$2 ~ /armv[0-9][a-z]?/) { print $$1 ":arm;" $$3 ";" $$4} else if ($$2 ~ /arm64[a-z]?/) { print $$1 ":arm64;" $$3 ";" $$4} else { print $$1 ":" $$2 ";" $$3 ";" $$4} }' ) | |
182 | ||
183 | function_lookup_product_alias = $(call function_substitute_word_with_replacement, \ | |
184 | $(1), \ | |
185 | $(DEVICEMAP_PRODUCT_SOC_ALIASES), \ | |
186 | ) | |
187 | endif | |
39236c6e | 188 | |
fe8ab488 A |
189 | ifeq ($(PLATFORM),MacOSX) |
190 | ||
191 | # Defaults for "make all_desktop" | |
192 | ifeq ($(KERNEL_CONFIGS),DEFAULT) | |
193 | KERNEL_CONFIGS_DESKTOP := RELEASE DEVELOPMENT | |
194 | else | |
195 | KERNEL_CONFIGS_DESKTOP := $(KERNEL_CONFIGS) | |
196 | endif | |
197 | ||
198 | endif | |
199 | ||
39236c6e A |
200 | ifndef TARGET_CONFIGS |
201 | ifneq ($(PRODUCT_CONFIGS),) | |
202 | # generate TARGET_CONFIGS using KERNEL_CONFIGS and PRODUCT_CONFIGS | |
39037602 A |
203 | TARGET_CONFIGS := $(foreach my_devicemap_config,$(foreach my_product_config,$(shell printf "%s" "$(PRODUCT_CONFIGS)" | $(TR) A-Z a-z),$(call function_lookup_product,$(my_product_config))),$(foreach my_kernel_config,$(KERNEL_CONFIGS),$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) |
204 | TARGET_CONFIGS_ALIASES := $(foreach my_devicemap_config,$(foreach my_product_config,$(shell printf "%s" "$(PRODUCT_CONFIGS)" | $(TR) A-Z a-z),$(call function_lookup_product_alias,$(my_product_config))),$(foreach my_kernel_config,$(KERNEL_CONFIGS),$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) | |
fe8ab488 A |
205 | else ifneq ($(filter %_release_embedded,$(MAKECMDGOALS)),) |
206 | # generate TARGET_CONFIGS for RELEASE kernel configs and products in the device map | |
39037602 A |
207 | TARGET_CONFIGS := $(foreach my_devicemap_config,$(foreach my_arch_config,$(ARCH_CONFIGS_EMBEDDED),$(foreach my_product_config,$(DEVICEMAP_PRODUCTS_$(my_arch_config)),$(call function_lookup_product,$(my_product_config)))),$(foreach my_kernel_config,RELEASE,$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) |
208 | TARGET_CONFIGS_ALIASES := $(foreach my_devicemap_config,$(foreach my_arch_config,$(ARCH_CONFIGS_EMBEDDED),$(foreach my_product_config,$(DEVICEMAP_PRODUCTS_$(my_arch_config)),$(call function_lookup_product_alias,$(my_product_config)))),$(foreach my_kernel_config,RELEASE,$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) | |
fe8ab488 A |
209 | else ifneq ($(filter %_development_embedded,$(MAKECMDGOALS)),) |
210 | # generate TARGET_CONFIGS for DEVELOPMENT kernel configs and products in the device map | |
39037602 A |
211 | TARGET_CONFIGS := $(foreach my_devicemap_config,$(foreach my_arch_config,$(ARCH_CONFIGS_EMBEDDED),$(foreach my_product_config,$(DEVICEMAP_PRODUCTS_$(my_arch_config)),$(call function_lookup_product,$(my_product_config)))),$(foreach my_kernel_config,DEVELOPMENT,$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) |
212 | TARGET_CONFIGS_ALIASES := $(foreach my_devicemap_config,$(foreach my_arch_config,$(ARCH_CONFIGS_EMBEDDED),$(foreach my_product_config,$(DEVICEMAP_PRODUCTS_$(my_arch_config)),$(call function_lookup_product_alias,$(my_product_config)))),$(foreach my_kernel_config,DEVELOPMENT,$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) | |
39236c6e A |
213 | else ifneq ($(filter %_embedded,$(MAKECMDGOALS)),) |
214 | # generate TARGET_CONFIGS for all kernel configs and products in the device map | |
39037602 A |
215 | TARGET_CONFIGS := $(foreach my_devicemap_config,$(foreach my_arch_config,$(ARCH_CONFIGS_EMBEDDED),$(foreach my_product_config,$(DEVICEMAP_PRODUCTS_$(my_arch_config)),$(call function_lookup_product,$(my_product_config)))),$(foreach my_kernel_config,$(KERNEL_CONFIGS_EMBEDDED),$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) |
216 | TARGET_CONFIGS_ALIASES := $(foreach my_devicemap_config,$(foreach my_arch_config,$(ARCH_CONFIGS_EMBEDDED),$(foreach my_product_config,$(DEVICEMAP_PRODUCTS_$(my_arch_config)),$(call function_lookup_product_alias,$(my_product_config)))),$(foreach my_kernel_config,$(KERNEL_CONFIGS_EMBEDDED),$(my_kernel_config) $(subst ;, ,$(my_devicemap_config)))) | |
fe8ab488 A |
217 | else ifneq ($(filter %_desktop,$(MAKECMDGOALS)),) |
218 | # generate TARGET_CONFIGS for all kernel configs for B&I | |
219 | TARGET_CONFIGS := $(foreach my_kern_config, $(KERNEL_CONFIGS_DESKTOP), $(foreach my_arch_config, $(ARCH_CONFIGS), $(foreach my_machine_config, $(MACHINE_CONFIGS), $(my_kern_config) $(my_arch_config) $(my_machine_config)))) | |
39037602 | 220 | TARGET_CONFIGS_ALIASES := |
39236c6e A |
221 | else |
222 | # generate TARGET_CONFIGS using KERNEL_CONFIGS and ARCH_CONFIGS and MACHINE_CONFIGS (which defaults to "DEFAULT") | |
223 | TARGET_CONFIGS := $(foreach my_kern_config, $(KERNEL_CONFIGS), $(foreach my_arch_config, $(ARCH_CONFIGS), $(foreach my_machine_config, $(MACHINE_CONFIGS), $(my_kern_config) $(my_arch_config) $(my_machine_config)))) | |
39037602 | 224 | TARGET_CONFIGS_ALIASES := |
39236c6e A |
225 | endif |
226 | endif | |
227 | ||
228 | ifeq ($(TARGET_CONFIGS),) | |
229 | $(error No TARGET_CONFIGS specified) | |
230 | endif | |
231 | ||
232 | TARGET_CONFIGS_UC := $(strip $(shell printf "%s" "$(TARGET_CONFIGS)" | $(TR) a-z A-Z)) | |
39037602 | 233 | TARGET_CONFIGS_ALIASES_UC := $(strip $(shell printf "%s" "$(TARGET_CONFIGS_ALIASES)" | $(TR) a-z A-Z)) |
39236c6e A |
234 | |
235 | # | |
236 | # Build Configurations | |
237 | # | |
238 | # TARGET_CONFIGS is unwieldy for use in Makefiles. Convert them to | |
239 | # "build configurations" which are tuples joined by "^". For | |
240 | # example, "RELEASE I386 DEFAULT DEVELOPMENT ARM DEFAULT" becomes | |
5ba3f43e | 241 | # "RELEASE^I386^NONE DEVELOPMENT^ARM^T8002", which can be looped |
39236c6e A |
242 | # over trivially. PRIMARY_BUILD_CONFIGS is the first config |
243 | # for each architecture, used primarily for machine-dependent recursion. | |
244 | ||
245 | BUILD_CONFIGS = $(call function_create_build_configs, $(TARGET_CONFIGS_UC)) | |
246 | ||
247 | PRIMARY_ARCHS = $(strip $(sort $(foreach build_config, $(BUILD_CONFIGS), $(call function_extract_arch_config_from_build_config, $(build_config))))) | |
248 | PRIMARY_BUILD_CONFIGS = $(strip $(foreach arch, $(PRIMARY_ARCHS), $(firstword $(foreach build_config, $(BUILD_CONFIGS), $(if $(filter $(arch),$(call function_extract_arch_config_from_build_config, $(build_config))), $(build_config), ))))) | |
249 | NON_PRIMARY_BUILD_CONFIGS = $(strip $(filter-out $(PRIMARY_BUILD_CONFIGS), $(BUILD_CONFIGS))) | |
250 | FIRST_BUILD_CONFIG = $(firstword $(BUILD_CONFIGS)) | |
251 | ||
39037602 A |
252 | ifneq ($(TARGET_CONFIGS_ALIASES_UC),) |
253 | ALIAS_CONFIGS = $(call function_create_alias_configs, $(TARGET_CONFIGS_ALIASES_UC)) | |
254 | else | |
255 | ALIAS_CONFIGS = | |
256 | endif | |
257 | ||
39236c6e A |
258 | # $(warning PRIMARY_ARCHS is $(PRIMARY_ARCHS)) |
259 | # $(warning TARGET_CONFIGS is $(TARGET_CONFIGS)) | |
260 | # $(warning BUILD_CONFIGS is $(BUILD_CONFIGS)) | |
261 | # $(warning PRIMARY_BUILD_CONFIGS is $(PRIMARY_BUILD_CONFIGS)) | |
262 | # $(warning NON_PRIMARY_BUILD_CONFIGS is $(NON_PRIMARY_BUILD_CONFIGS)) | |
39037602 A |
263 | # $(warning TARGET_CONFIGS_ALIASES is $(TARGET_CONFIGS_ALIASES)) |
264 | # $(warning ALIAS_CONFIGS is $(ALIAS_CONFIGS)) | |
39236c6e A |
265 | |
266 | MEMORY_SIZE := $(shell /usr/sbin/sysctl -n hw.memsize) | |
267 | ||
fe8ab488 A |
268 | # Assume LTO scaling by default, unless it is being explicitly passed on the command-line |
269 | LARGE_BUILD_FOOTPRINT := $(if $(BUILD_LTO),$(BUILD_LTO),1) | |
39236c6e A |
270 | |
271 | ifeq ($(LARGE_BUILD_FOOTPRINT),1) | |
39037602 | 272 | RAM_PER_KERNEL_BUILD := 4294967296 |
39236c6e A |
273 | else |
274 | RAM_PER_KERNEL_BUILD := 268435456 | |
39236c6e A |
275 | endif |
276 | ||
fe8ab488 A |
277 | KERNEL_BUILDS_IN_PARALLEL := $(shell if [ $(MEMORY_SIZE) -le $$((1 * $(RAM_PER_KERNEL_BUILD))) ]; then echo 1; elif [ $(MEMORY_SIZE) -gt $$(($(SYSCTL_HW_PHYSICALCPU) * $(RAM_PER_KERNEL_BUILD))) ]; then echo $(SYSCTL_HW_PHYSICALCPU); else expr $(MEMORY_SIZE) / $(RAM_PER_KERNEL_BUILD); fi ) |
278 | # $(warning Building $(KERNEL_BUILDS_IN_PARALLEL) kernels in parallel) | |
39236c6e A |
279 | |
280 | # | |
281 | # TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template | |
282 | # | |
283 | # $(1) is the name of the makefile target to invoke for the each build config | |
284 | # after setting up the parallel hierarchy in the TARGET directory | |
285 | # $(2) is an optional suffix on the TARGET directory, which might even be | |
286 | # "/.." | |
287 | # $(3) are any dependencies for the bootstrap target | |
288 | # $(4) are any dependencies that are expanded per-build config to another bootstrap target | |
289 | # $(5) is how many build configurations to build in parallel | |
290 | # $(6) is which build configs to build in parallel | |
291 | # | |
292 | # Since building many configurations in parallel may overwhelm the system, | |
fe8ab488 A |
293 | # we try to throttle behavior into more managable S "stripes" of N/S |
294 | # configurations by generating sequential dependencies between configs | |
295 | # in each stripe. That ensures that only S kernel builds are occurring | |
296 | # at once at any point in time | |
39236c6e A |
297 | |
298 | define TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template | |
299 | ||
300 | # Create a list of synthesized targets for each build config | |
301 | $(1)_bootstrap_target_list = $$(addprefix $(1)_bootstrap_,$(6)) | |
302 | ||
303 | .PHONY: $$($(1)_bootstrap_target_list) | |
304 | ||
fe8ab488 A |
305 | $(1)_generated_stripe_dependencies = $$(call _function_generate_stripe_groupings,$(1),$(5),$(call reverse,$(6))) |
306 | ifeq ($$(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
307 | $$(warning Generate makefile fragment: $$($(1)_generated_stripe_dependencies)) | |
308 | endif | |
309 | $$(eval $$($(1)_generated_stripe_dependencies)) | |
310 | ||
fe8ab488 | 311 | $$($(1)_bootstrap_target_list): $(1)_bootstrap_% : $(1)_stripe_dep_for_% $$(addsuffix _bootstrap_%,$(4)) $(3) |
39236c6e | 312 | $$(_v)$$(MKDIR) $${OBJROOT}/$$(call function_convert_build_config_to_objdir,$$(patsubst $(1)_bootstrap_%,%,$$@))$(2) |
39037602 | 313 | $$(_v)$${MAKE} \ |
39236c6e A |
314 | -C $${OBJROOT}/$$(call function_convert_build_config_to_objdir,$$(patsubst $(1)_bootstrap_%,%,$$@))$(2) \ |
315 | -f $${SRCROOT}/Makefile \ | |
316 | CURRENT_KERNEL_CONFIG=$$(call function_extract_kernel_config_from_build_config,$$(patsubst $(1)_bootstrap_%,%,$$@)) \ | |
317 | CURRENT_ARCH_CONFIG=$$(call function_extract_arch_config_from_build_config,$$(patsubst $(1)_bootstrap_%,%,$$@)) \ | |
318 | CURRENT_MACHINE_CONFIG=$$(call function_extract_machine_config_from_build_config,$$(patsubst $(1)_bootstrap_%,%,$$@)) \ | |
319 | CURRENT_BUILD_CONFIG=$$(patsubst $(1)_bootstrap_%,%,$$@) \ | |
320 | PRIMARY_BUILD_CONFIGS="$(PRIMARY_BUILD_CONFIGS)" \ | |
321 | SOURCE=$${SRCROOT}/ \ | |
322 | RELATIVE_SOURCE_PATH=. \ | |
323 | TARGET=$${OBJROOT}/$$(call function_convert_build_config_to_objdir,$$(patsubst $(1)_bootstrap_%,%,$$@))$(2)/ \ | |
324 | OBJPATH=$${OBJROOT}/$$(call function_convert_build_config_to_objdir,$$(patsubst $(1)_bootstrap_%,%,$$@)) \ | |
325 | $(1) | |
326 | ||
327 | .PHONY: $(1)_bootstrap | |
328 | ||
329 | $(1)_bootstrap: $$($(1)_bootstrap_target_list) | |
330 | endef | |
331 | ||
332 | # | |
fe8ab488 | 333 | # TOP_LEVEL_STRIPE_DEPENDENCY_template |
39236c6e A |
334 | # |
335 | # $(1) is the Makefile target we are building for | |
fe8ab488 A |
336 | # $(2) is the build config that must build first |
337 | # $(3) is the build config that must build after $(2) | |
39236c6e | 338 | |
fe8ab488 | 339 | define TOP_LEVEL_STRIPE_DEPENDENCY_template |
39236c6e | 340 | |
fe8ab488 | 341 | .PHONY: $(1)_stripe_dep_for_$(3) |
39236c6e | 342 | |
fe8ab488 | 343 | $(1)_stripe_dep_for_$(3): $(if $(2),$(1)_bootstrap_$(2)) |
39236c6e A |
344 | |
345 | endef | |
346 | ||
347 | # $(1) is the Makefile target we are building for | |
fe8ab488 A |
348 | # $(2) is the stripe size |
349 | # $(3) is the list of the build configs in the current group | |
350 | # $(4) is the list of remaining build configs | |
351 | _function_generate_stripe_groupings_recursive = $(foreach stripe_index,$(call sequence,$(2)),$(if $(word $(stripe_index),$(4)),$(call TOP_LEVEL_STRIPE_DEPENDENCY_template,$(1),$(word $(stripe_index),$(3)),$(word $(stripe_index),$(4))))) $(if $(word $(call increment,$(2)),$(4)),$(call _function_generate_stripe_groupings_recursive,$(1),$(2),$(wordlist 1,$(2),$(4)),$(wordlist $(call increment,$(2)),$(words $(4)),$(4)))) | |
352 | ||
fe8ab488 A |
353 | # $(1) is the Makefile target we are building for |
354 | # $(2) is the stripe size | |
355 | # $(3) is the list of the build configs | |
356 | _function_generate_stripe_groupings = $(call _function_generate_stripe_groupings_recursive,$(1),$(2),,$(3)) | |
39236c6e A |
357 | |
358 | # | |
359 | # Setup pass for build system tools | |
360 | # | |
361 | ||
fe8ab488 A |
362 | generated_top_level_build_setup = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_setup,/..,,,1,$(FIRST_BUILD_CONFIG)) |
363 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
364 | $(warning Generate makefile fragment: $(generated_top_level_build_setup)) |
365 | endif | |
366 | $(eval $(generated_top_level_build_setup)) | |
367 | ||
368 | .PHONY: setup | |
369 | ||
fe8ab488 | 370 | # invalidate current kernel in $(SYMROOT). Timestamp must be +1 from a previous kernel build |
39236c6e | 371 | setup: build_setup_bootstrap |
fe8ab488 A |
372 | $(_v)$(TOUCH) $(OBJROOT)/.mach_kernel.timestamp.new |
373 | $(_v)while [ \! $(OBJROOT)/.mach_kernel.timestamp.new -nt $(OBJROOT)/.mach_kernel.timestamp ]; do \ | |
374 | $(SLEEP) 1; \ | |
375 | $(TOUCH) $(OBJROOT)/.mach_kernel.timestamp.new; \ | |
376 | done | |
377 | $(_v)$(MV) $(OBJROOT)/.mach_kernel.timestamp.new $(OBJROOT)/.mach_kernel.timestamp | |
378 | $(_v)$(TOUCH) $(OBJROOT)/.symbolset.timestamp.new | |
379 | $(_v)while [ \! $(OBJROOT)/.symbolset.timestamp.new -nt $(OBJROOT)/.symbolset.timestamp ]; do \ | |
380 | $(SLEEP) 1; \ | |
381 | $(TOUCH) $(OBJROOT)/.symbolset.timestamp.new; \ | |
382 | done | |
383 | $(_v)$(MV) $(OBJROOT)/.symbolset.timestamp.new $(OBJROOT)/.symbolset.timestamp | |
39236c6e A |
384 | |
385 | # | |
386 | # Install kernel header files | |
387 | # | |
388 | .PHONY: exporthdrs exporthdrs_mi exporthdrs_md | |
389 | ||
39037602 | 390 | exporthdrs: exporthdrs_mi exporthdrs_md |
39236c6e A |
391 | |
392 | # | |
393 | # Install machine independent kernel header files | |
394 | # | |
395 | ||
396 | generated_top_level_build_exporthdrs_mi = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_exporthdrs_mi,,setup,,1,$(FIRST_BUILD_CONFIG)) | |
fe8ab488 | 397 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) |
39236c6e A |
398 | $(warning Generate makefile fragment: $(generated_top_level_build_exporthdrs_mi)) |
399 | endif | |
400 | $(eval $(generated_top_level_build_exporthdrs_mi)) | |
401 | ||
402 | exporthdrs_mi: build_exporthdrs_mi_bootstrap | |
403 | ||
404 | # | |
39037602 | 405 | # Install machine dependent kernel header files |
39236c6e A |
406 | # |
407 | ||
fe8ab488 A |
408 | generated_top_level_build_exporthdrs_md = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_exporthdrs_md,,setup,,$(KERNEL_BUILDS_IN_PARALLEL),$(PRIMARY_BUILD_CONFIGS)) |
409 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
410 | $(warning Generate makefile fragment: $(generated_top_level_build_exporthdrs_md)) |
411 | endif | |
412 | $(eval $(generated_top_level_build_exporthdrs_md)) | |
413 | ||
414 | exporthdrs_md: build_exporthdrs_md_bootstrap | |
415 | ||
416 | # | |
417 | # Install kernel header files | |
418 | # | |
419 | ||
420 | .PHONY: installhdrs installhdrs_mi installhdrs_md | |
421 | ||
422 | ifeq ($(RC_ProjectName),xnu_debug) | |
5ba3f43e A |
423 | installhdrs: |
424 | @: | |
425 | else ifeq ($(RC_ProjectName),xnu_kasan) | |
39236c6e A |
426 | installhdrs: |
427 | @: | |
428 | else | |
429 | ||
430 | installhdrs: installhdrs_mi installhdrs_md | |
431 | endif | |
432 | ||
fe8ab488 A |
433 | .PHONY: installhdrs_embedded installhdrs_release_embedded installhdrs_development_embedded installhdrs_desktop |
434 | ||
435 | installhdrs_embedded installhdrs_release_embedded installhdrs_desktop: installhdrs | |
39236c6e | 436 | |
fe8ab488 | 437 | installhdrs_development_embedded: |
39236c6e A |
438 | |
439 | # | |
440 | # Install machine independent header files | |
441 | # | |
442 | ||
fe8ab488 A |
443 | generated_top_level_build_installhdrs_mi = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_installhdrs_mi,,setup,build_exporthdrs_mi,1,$(FIRST_BUILD_CONFIG)) |
444 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
445 | $(warning Generate makefile fragment: $(generated_top_level_build_installhdrs_mi)) |
446 | endif | |
447 | $(eval $(generated_top_level_build_installhdrs_mi)) | |
448 | ||
fe8ab488 | 449 | installhdrs_mi: build_installhdrs_mi_bootstrap |
39236c6e A |
450 | |
451 | # | |
39037602 | 452 | # Install machine dependent kernel header files |
39236c6e A |
453 | # |
454 | ||
fe8ab488 A |
455 | generated_top_level_build_installhdrs_md = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_installhdrs_md,,setup,build_exporthdrs_md,$(KERNEL_BUILDS_IN_PARALLEL),$(PRIMARY_BUILD_CONFIGS)) |
456 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
457 | $(warning Generate makefile fragment: $(generated_top_level_build_installhdrs_md)) |
458 | endif | |
459 | $(eval $(generated_top_level_build_installhdrs_md)) | |
460 | ||
fe8ab488 A |
461 | installhdrs_md: build_installhdrs_md_bootstrap |
462 | ||
463 | # | |
464 | # Install text files (man pages, dtrace scripts, etc.) | |
465 | # | |
466 | ||
467 | generated_top_level_textfiles_install = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,textfiles_install,,setup,,1,$(FIRST_BUILD_CONFIG)) | |
468 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
469 | $(warning Generate makefile fragment: $(generated_top_level_textfiles_install)) | |
470 | endif | |
471 | $(eval $(generated_top_level_textfiles_install)) | |
472 | ||
473 | .PHONY: install_textfiles | |
474 | ||
475 | install_textfiles: textfiles_install_bootstrap | |
39236c6e A |
476 | |
477 | # | |
478 | # Build all architectures for all Configuration/Architecture options | |
479 | # | |
480 | ||
fe8ab488 A |
481 | generated_top_level_build_all = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_all,,setup exporthdrs,,$(KERNEL_BUILDS_IN_PARALLEL),$(BUILD_CONFIGS)) |
482 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
483 | $(warning Generate makefile fragment: $(generated_top_level_build_all)) |
484 | endif | |
485 | $(eval $(generated_top_level_build_all)) | |
486 | ||
487 | .PHONY: build | |
488 | ||
489 | build: build_all_bootstrap | |
490 | ||
491 | # | |
492 | # Post-process build results | |
493 | # | |
494 | ||
fe8ab488 A |
495 | generated_top_level_config_all = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,config_all,,setup,build_all,$(KERNEL_BUILDS_IN_PARALLEL),$(BUILD_CONFIGS)) |
496 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
497 | $(warning Generate makefile fragment: $(generated_top_level_config_all)) |
498 | endif | |
499 | $(eval $(generated_top_level_config_all)) | |
500 | ||
fe8ab488 | 501 | .PHONY: all config |
39236c6e | 502 | |
fe8ab488 | 503 | all config: config_all_bootstrap |
39236c6e | 504 | |
fe8ab488 | 505 | .PHONY: all_embedded all_release_embedded all_development_embedded all_desktop |
39236c6e | 506 | |
fe8ab488 | 507 | all_embedded all_release_embedded all_development_embedded all_desktop: all |
39236c6e A |
508 | |
509 | # | |
fe8ab488 | 510 | # Install kernel files |
39236c6e A |
511 | # |
512 | ||
513 | generated_top_level_build_install_primary = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_install_primary,,setup,config_all,1,$(PRIMARY_BUILD_CONFIGS)) | |
fe8ab488 | 514 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) |
39236c6e A |
515 | $(warning Generate makefile fragment: $(generated_top_level_build_install_primary)) |
516 | endif | |
517 | $(eval $(generated_top_level_build_install_primary)) | |
518 | ||
fe8ab488 A |
519 | .PHONY: install_primary |
520 | ||
521 | install_primary: build_install_primary_bootstrap | |
522 | ||
523 | generated_top_level_build_install_non_primary = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,build_install_non_primary,,setup,config_all,$(KERNEL_BUILDS_IN_PARALLEL),$(NON_PRIMARY_BUILD_CONFIGS)) | |
524 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
39236c6e A |
525 | $(warning Generate makefile fragment: $(generated_top_level_build_install_non_primary)) |
526 | endif | |
527 | $(eval $(generated_top_level_build_install_non_primary)) | |
528 | ||
fe8ab488 A |
529 | .PHONY: install_non_primary |
530 | ||
531 | install_non_primary: build_install_non_primary_bootstrap | |
532 | ||
533 | generated_top_level_config_install = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,config_install,,setup,config_all,1,$(PRIMARY_BUILD_CONFIGS)) | |
534 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
535 | $(warning Generate makefile fragment: $(generated_top_level_config_install)) | |
536 | endif | |
537 | $(eval $(generated_top_level_config_install)) | |
538 | ||
539 | .PHONY: install_config final_touch_config_timestamps | |
540 | ||
541 | install_config: config_install_bootstrap final_touch_config_timestamps | |
542 | ||
543 | # Tell the next build the latest timestamp of any potential file in DSTROOT/SYMROOT | |
544 | final_touch_config_timestamps: config_install_bootstrap | |
545 | $(_v)$(TOUCH) $(OBJROOT)/.symbolset.timestamp | |
546 | ||
547 | # | |
548 | # Aggregate install targets, which install everything appropriate for the current build alias/make target | |
549 | # | |
39236c6e A |
550 | |
551 | .PHONY: install | |
552 | ||
553 | ifeq ($(RC_ProjectName),xnu_debug) | |
fe8ab488 | 554 | install: install_kernels |
5ba3f43e A |
555 | else ifeq ($(RC_ProjectName),xnu_kasan) |
556 | install: install_config install_kernels | |
39236c6e A |
557 | else ifeq ($(RC_ProjectName),xnu_headers_Sim) |
558 | install: installhdrs | |
559 | else | |
560 | ||
39037602 | 561 | install: installhdrs install_textfiles install_config install_kernels install_aliases |
39236c6e A |
562 | endif |
563 | ||
fe8ab488 | 564 | .PHONY: install_embedded install_release_embedded install_development_embedded install_desktop |
39236c6e | 565 | |
fe8ab488 A |
566 | # By default, all kernel files, headers, text files, and pseudo-kexts are installed |
567 | install_embedded install_release_embedded install_desktop: install | |
39236c6e | 568 | |
fe8ab488 | 569 | # These special configs only install the kernel files |
39037602 | 570 | install_development_embedded: install_kernels install_aliases |
39236c6e | 571 | |
39037602 | 572 | .PHONY: install_kernels final_touch_kernel_timestamps install_aliases |
39236c6e | 573 | |
fe8ab488 | 574 | install_kernels: build_install_primary_bootstrap build_install_non_primary_bootstrap final_touch_kernel_timestamps |
39236c6e | 575 | |
fe8ab488 A |
576 | # Tell the next build the latest timestamp of any potential file in DSTROOT/SYMROOT |
577 | final_touch_kernel_timestamps: build_install_primary_bootstrap build_install_non_primary_bootstrap | |
578 | $(_v)$(TOUCH) $(OBJROOT)/.mach_kernel.timestamp | |
39236c6e | 579 | |
39037602 A |
580 | # Copy kernels that are aliases of another configuration |
581 | generated_top_level_install_alias = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,install_alias,,install_kernels,,$(KERNEL_BUILDS_IN_PARALLEL),$(ALIAS_CONFIGS)) | |
582 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) | |
583 | $(warning Generate makefile fragment: $(generated_top_level_install_alias)) | |
584 | endif | |
585 | $(eval $(generated_top_level_install_alias)) | |
586 | ||
587 | install_aliases: install_alias_bootstrap | |
588 | ||
39236c6e A |
589 | # |
590 | # Install source tree | |
591 | # | |
592 | .PHONY: installsrc | |
593 | ||
594 | installsrc: | |
595 | @echo INSTALLSRC $(SRCROOT) | |
596 | $(_v)$(MKDIR) $(SRCROOT) | |
fe8ab488 A |
597 | $(_v)$(FIND) -x . \! \( \( -name BUILD -o -name .svn -o -name .git -o -name cscope.\* -o -name \*~ \) -prune \) -print0 | $(PAX) -rw -p a -d0 $(SRCROOT) |
598 | $(_v)$(CHMOD) -R go+rX $(SRCROOT) | |
39236c6e A |
599 | |
600 | ||
601 | # | |
602 | # Clean up source tree | |
603 | # | |
604 | .PHONY: clean | |
605 | ||
813fb2f6 A |
606 | CLEAN_RM_DIRS= $(OBJROOT) $(SYMROOT) $(DSTROOT) \ |
607 | $(SRCROOT)/tools/test/BUILD \ | |
608 | $(SRCROOT)/tools/tests/darwintests/build \ | |
609 | $(SRCROOT)/tools/tests/testkext/build \ | |
610 | $(SRCROOT)/libkdd/build \ | |
611 | $(SRCROOT)/tools/tests/unit_tests/BUILD \ | |
612 | $(SRCROOT)/tools/tests/execperf/BUILD \ | |
613 | $(SRCROOT)/tools/tests/packetdrill/BUILD \ | |
614 | $(SRCROOT)/tools/tests/perf_index/BUILD | |
615 | ||
616 | CLEAN_ACTION_DIRS= $(SRCROOT)/tools/tests/MPMMTest \ | |
617 | $(SRCROOT)/tools/tests/TLBcoherency \ | |
618 | $(SRCROOT)/tools/tests/kqueue_tests \ | |
813fb2f6 A |
619 | $(SRCROOT)/tools/tests/mktimer \ |
620 | $(SRCROOT)/tools/tests/zero-to-n \ | |
621 | $(SRCROOT)/tools/tests/personas | |
622 | ||
39236c6e A |
623 | clean: |
624 | @: | |
813fb2f6 A |
625 | $(_v)rm -f cscope.* 2> /dev/null |
626 | $(_v)rm -f TAGS 2> /dev/null | |
627 | $(_v)for cdir in $(CLEAN_RM_DIRS); do \ | |
628 | if [ -d $${cdir} ] ; then \ | |
629 | echo "Removing $${cdir}"; \ | |
630 | rm -fr $${cdir} 2> /dev/null || true ; \ | |
631 | fi ; \ | |
632 | done | |
633 | ||
634 | $(_v)for mcdir in $(CLEAN_ACTION_DIRS); do \ | |
635 | make -C $${mcdir} clean; \ | |
636 | done | |
637 | ||
fe8ab488 | 638 | |
39236c6e A |
639 | # |
640 | # Build source file list for cscope database and tags | |
641 | # | |
fe8ab488 A |
642 | .PHONY: cscope.files |
643 | ||
39236c6e A |
644 | cscope.files: |
645 | @echo "Building file list for cscope and tags" | |
646 | @find . -name '*.h' -type f | grep -v ^..BUILD > _cscope.files 2> /dev/null | |
647 | @find . -name '*.defs' -type f | grep -v ^..BUILD >> _cscope.files 2> /dev/null | |
648 | @find . -name '*.c' -type f | grep -v ^..BUILD >> _cscope.files 2> /dev/null | |
649 | @find . -name '*.cpp' -type f | grep -v ^..BUILD >> _cscope.files 2> /dev/null | |
650 | @find . -name '*.s' -type f | grep -v ^..BUILD >> _cscope.files 2> /dev/null | |
651 | @find . -name '*.h.template' -type f | grep -v ^..BUILD >> _cscope.files 2> /dev/null | |
fe8ab488 | 652 | @cat $(OBJROOT)/cscope.genhdrs/* >> _cscope.files 2> /dev/null || true |
39236c6e A |
653 | @echo -k -q -c > cscope.files 2> /dev/null |
654 | @sort -u < _cscope.files >> cscope.files 2> /dev/null | |
655 | @rm -f _cscope.files _cscope.files2 2> /dev/null | |
656 | ||
657 | # | |
658 | # Build cscope database | |
659 | # | |
660 | cscope: cscope.files | |
661 | @echo "Building cscope database" | |
662 | @cscope -bvU 2> /dev/null | |
663 | ||
664 | # | |
665 | # Build tags | |
666 | # | |
667 | tags: cscope.files | |
668 | @echo "Building ctags" | |
669 | @-sed 1d cscope.files | xargs ctags -dtw 2> /dev/null || \ | |
670 | echo "Phantom files detected!" 2>&1 > /dev/null | |
671 | @-[ -f TAGS ] || ${MAKE} -f $(firstword $(MAKEFILE_LIST)) TAGS | |
672 | ||
673 | TAGS: cscope.files | |
674 | @echo "Building etags" | |
675 | @-cat cscope.files | etags -l auto -S - 2> /dev/null | |
fe8ab488 | 676 | @rm -f cscope.files 2> /dev/null |
39236c6e | 677 | |
3e170ce0 A |
678 | # |
679 | # Re-indent source code using xnu clang-format style | |
680 | # | |
681 | .PHONY: reindent | |
682 | ||
683 | reindent: | |
684 | $(_v)$(SRCROOT)/tools/reindent.sh | |
685 | ||
686 | .PHONY: help | |
687 | ||
39236c6e | 688 | help: |
39037602 | 689 | @cat README.md |
39236c6e | 690 | |
3e170ce0 A |
691 | .PHONY: print_exports |
692 | ||
39236c6e A |
693 | print_exports: |
694 | $(_v)printenv | sort | |
695 | ||
39236c6e | 696 | generated_top_level_print_exports = $(call TOP_LEVEL_EACH_BUILD_CONFIG_BOOTSTRAP_template,print_exports,,,,1,$(FIRST_BUILD_CONFIG)) |
fe8ab488 | 697 | ifeq ($(VERBOSE_GENERATED_MAKE_FRAGMENTS),YES) |
39236c6e A |
698 | $(warning Generate makefile fragment: $(generated_top_level_print_exports)) |
699 | endif | |
700 | $(eval $(generated_top_level_print_exports)) | |
701 | ||
3e170ce0 A |
702 | .PHONY: print_exports_first_build_config |
703 | ||
39236c6e | 704 | print_exports_first_build_config: print_exports_bootstrap |