envsetup.mk revision 145ae32069d830d9318b61a996633126141c25a7
1# Variables we check:
2#     HOST_BUILD_TYPE = { release debug }
3#     TARGET_BUILD_TYPE = { release debug }
4# and we output a bunch of variables, see the case statement at
5# the bottom for the full list
6#     OUT_DIR is also set to "out" if it's not already set.
7#         this allows you to set it to somewhere else if you like
8
9# Set up version information.
10include $(BUILD_SYSTEM)/version_defaults.mk
11
12# ---------------------------------------------------------------
13# If you update the build system such that the environment setup
14# or buildspec.mk need to be updated, increment this number, and
15# people who haven't re-run those will have to do so before they
16# can build.  Make sure to also update the corresponding value in
17# buildspec.mk.default and envsetup.sh.
18CORRECT_BUILD_ENV_SEQUENCE_NUMBER := 10
19
20# ---------------------------------------------------------------
21# The product defaults to generic on hardware
22# NOTE: This will be overridden in product_config.mk if make
23# was invoked with a PRODUCT-xxx-yyy goal.
24ifeq ($(TARGET_PRODUCT),)
25TARGET_PRODUCT := aosp_arm
26endif
27
28
29# the variant -- the set of files that are included for a build
30ifeq ($(strip $(TARGET_BUILD_VARIANT)),)
31TARGET_BUILD_VARIANT := eng
32endif
33
34# ---------------------------------------------------------------
35# Set up configuration for host machine.  We don't do cross-
36# compiles except for arm/mips, so the HOST is whatever we are
37# running on
38
39UNAME := $(shell uname -sm)
40
41# HOST_OS
42ifneq (,$(findstring Linux,$(UNAME)))
43  HOST_OS := linux
44endif
45ifneq (,$(findstring Darwin,$(UNAME)))
46  HOST_OS := darwin
47endif
48ifneq (,$(findstring Macintosh,$(UNAME)))
49  HOST_OS := darwin
50endif
51
52# BUILD_OS is the real host doing the build.
53BUILD_OS := $(HOST_OS)
54
55# Under Linux, if USE_MINGW is set, we change HOST_OS to Windows to build the
56# Windows SDK. Only a subset of tools and SDK will manage to build properly.
57ifeq ($(HOST_OS),linux)
58ifdef USE_MINGW
59  HOST_OS := windows
60endif
61endif
62
63ifeq ($(HOST_OS),)
64$(error Unable to determine HOST_OS from uname -sm: $(UNAME)!)
65endif
66
67# HOST_ARCH
68ifneq (,$(findstring x86_64,$(UNAME)))
69  HOST_ARCH := x86_64
70  HOST_2ND_ARCH := x86
71  HOST_IS_64_BIT := true
72else
73ifneq (,$(findstring x86,$(UNAME)))
74$(error Building on a 32-bit x86 host is not supported: $(UNAME)!)
75endif
76endif
77
78BUILD_ARCH := $(HOST_ARCH)
79BUILD_2ND_ARCH := $(HOST_2ND_ARCH)
80
81ifeq ($(HOST_ARCH),)
82$(error Unable to determine HOST_ARCH from uname -sm: $(UNAME)!)
83endif
84
85# the host build defaults to release, and it must be release or debug
86ifeq ($(HOST_BUILD_TYPE),)
87HOST_BUILD_TYPE := release
88endif
89
90ifneq ($(HOST_BUILD_TYPE),release)
91ifneq ($(HOST_BUILD_TYPE),debug)
92$(error HOST_BUILD_TYPE must be either release or debug, not '$(HOST_BUILD_TYPE)')
93endif
94endif
95
96# We don't want to move all the prebuilt host tools to a $(HOST_OS)-x86_64 dir.
97HOST_PREBUILT_ARCH := x86
98# This is the standard way to name a directory containing prebuilt host
99# objects. E.g., prebuilt/$(HOST_PREBUILT_TAG)/cc
100HOST_PREBUILT_TAG := $(BUILD_OS)-$(HOST_PREBUILT_ARCH)
101
102# TARGET_COPY_OUT_* are all relative to the staging directory, ie PRODUCT_OUT.
103# Define them here so they can be used in product config files.
104TARGET_COPY_OUT_SYSTEM := system
105TARGET_COPY_OUT_DATA := data
106TARGET_COPY_OUT_OEM := oem
107TARGET_COPY_OUT_ODM := odm
108TARGET_COPY_OUT_ROOT := root
109TARGET_COPY_OUT_RECOVERY := recovery
110###########################################
111# Define TARGET_COPY_OUT_VENDOR to a placeholder, for at this point
112# we don't know if the device wants to build a separate vendor.img
113# or just build vendor stuff into system.img.
114# A device can set up TARGET_COPY_OUT_VENDOR to "vendor" in its
115# BoardConfig.mk.
116# We'll substitute with the real value after loading BoardConfig.mk.
117_vendor_path_placeholder := ||VENDOR-PATH-PH||
118TARGET_COPY_OUT_VENDOR := $(_vendor_path_placeholder)
119###########################################
120
121# Read the product specs so we can get TARGET_DEVICE and other
122# variables that we need in order to locate the output files.
123include $(BUILD_SYSTEM)/product_config.mk
124
125build_variant := $(filter-out eng user userdebug,$(TARGET_BUILD_VARIANT))
126ifneq ($(build_variant)-$(words $(TARGET_BUILD_VARIANT)),-1)
127$(warning bad TARGET_BUILD_VARIANT: $(TARGET_BUILD_VARIANT))
128$(error must be empty or one of: eng user userdebug)
129endif
130
131ifdef USE_MINGW
132# We only build sdk host tools in the MinGW windows build.
133# Build it as 32-bit as well.
134HOST_PREFER_32_BIT := true
135endif
136SDK_HOST_ARCH := x86
137
138# Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)
139# or under vendor/*/$(TARGET_DEVICE).  Search in both places, but
140# make sure only one exists.
141# Real boards should always be associated with an OEM vendor.
142board_config_mk := \
143	$(strip $(wildcard \
144		$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
145		$(shell test -d device && find device -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
146		$(shell test -d vendor && find vendor -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
147	))
148ifeq ($(board_config_mk),)
149  $(error No config file found for TARGET_DEVICE $(TARGET_DEVICE))
150endif
151ifneq ($(words $(board_config_mk)),1)
152  $(error Multiple board config files for TARGET_DEVICE $(TARGET_DEVICE): $(board_config_mk))
153endif
154include $(board_config_mk)
155ifeq ($(TARGET_ARCH),)
156  $(error TARGET_ARCH not defined by board config: $(board_config_mk))
157endif
158TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk)))
159board_config_mk :=
160
161###########################################
162# Now we can substitute with the real value of TARGET_COPY_OUT_VENDOR
163ifeq ($(TARGET_COPY_OUT_VENDOR),$(_vendor_path_placeholder))
164TARGET_COPY_OUT_VENDOR := system/vendor
165else ifeq ($(filter vendor system/vendor,$(TARGET_COPY_OUT_VENDOR)),)
166$(error TARGET_COPY_OUT_VENDOR must be either 'vendor' or 'system/vendor', seeing '$(TARGET_COPY_OUT_VENDOR)'.)
167endif
168PRODUCT_COPY_FILES := $(subst $(_vendor_path_placeholder),$(TARGET_COPY_OUT_VENDOR),$(PRODUCT_COPY_FILES))
169###########################################
170
171
172# ---------------------------------------------------------------
173# Set up configuration for target machine.
174# The following must be set:
175# 		TARGET_OS = { linux }
176# 		TARGET_ARCH = { arm | x86 | mips }
177
178TARGET_OS := linux
179# TARGET_ARCH should be set by BoardConfig.mk and will be checked later
180ifneq ($(filter %64,$(TARGET_ARCH)),)
181TARGET_IS_64_BIT := true
182endif
183
184# the target build type defaults to release
185ifneq ($(TARGET_BUILD_TYPE),debug)
186TARGET_BUILD_TYPE := release
187endif
188
189# ---------------------------------------------------------------
190# figure out the output directories
191
192ifeq (,$(strip $(OUT_DIR)))
193ifeq (,$(strip $(OUT_DIR_COMMON_BASE)))
194OUT_DIR := $(TOPDIR)out
195else
196OUT_DIR := $(OUT_DIR_COMMON_BASE)/$(notdir $(PWD))
197endif
198endif
199
200DEBUG_OUT_DIR := $(OUT_DIR)/debug
201
202# Move the host or target under the debug/ directory
203# if necessary.
204TARGET_OUT_ROOT_release := $(OUT_DIR)/target
205TARGET_OUT_ROOT_debug := $(DEBUG_OUT_DIR)/target
206TARGET_OUT_ROOT := $(TARGET_OUT_ROOT_$(TARGET_BUILD_TYPE))
207
208HOST_OUT_ROOT_release := $(OUT_DIR)/host
209HOST_OUT_ROOT_debug := $(DEBUG_OUT_DIR)/host
210HOST_OUT_ROOT := $(HOST_OUT_ROOT_$(HOST_BUILD_TYPE))
211
212# We want to avoid two host bin directories in multilib build.
213HOST_OUT_release := $(HOST_OUT_ROOT_release)/$(HOST_OS)-$(HOST_PREBUILT_ARCH)
214HOST_OUT_debug := $(HOST_OUT_ROOT_debug)/$(HOST_OS)-$(HOST_PREBUILT_ARCH)
215HOST_OUT := $(HOST_OUT_$(HOST_BUILD_TYPE))
216
217BUILD_OUT := $(OUT_DIR)/host/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)
218
219TARGET_PRODUCT_OUT_ROOT := $(TARGET_OUT_ROOT)/product
220
221TARGET_COMMON_OUT_ROOT := $(TARGET_OUT_ROOT)/common
222HOST_COMMON_OUT_ROOT := $(HOST_OUT_ROOT)/common
223
224PRODUCT_OUT := $(TARGET_PRODUCT_OUT_ROOT)/$(TARGET_DEVICE)
225
226OUT_DOCS := $(TARGET_COMMON_OUT_ROOT)/docs
227
228BUILD_OUT_EXECUTABLES := $(BUILD_OUT)/bin
229
230HOST_OUT_EXECUTABLES := $(HOST_OUT)/bin
231HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib64
232HOST_OUT_JAVA_LIBRARIES := $(HOST_OUT)/framework
233HOST_OUT_SDK_ADDON := $(HOST_OUT)/sdk_addon
234
235HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj
236HOST_OUT_HEADERS := $(HOST_OUT_INTERMEDIATES)/include
237HOST_OUT_INTERMEDIATE_LIBRARIES := $(HOST_OUT_INTERMEDIATES)/lib
238HOST_OUT_NOTICE_FILES := $(HOST_OUT_INTERMEDIATES)/NOTICE_FILES
239HOST_OUT_COMMON_INTERMEDIATES := $(HOST_COMMON_OUT_ROOT)/obj
240HOST_OUT_FAKE := $(HOST_OUT)/fake_packages
241
242HOST_OUT_GEN := $(HOST_OUT)/gen
243HOST_OUT_COMMON_GEN := $(HOST_COMMON_OUT_ROOT)/gen
244
245# Out for HOST_2ND_ARCH
246HOST_2ND_ARCH_VAR_PREFIX := 2ND_
247HOST_2ND_ARCH_MODULE_SUFFIX := _32
248$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj32
249$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATE_LIBRARIES := $($(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES)/lib
250$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib
251$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_EXECUTABLES := $(HOST_OUT_EXECUTABLES)
252$(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_JAVA_LIBRARIES := $(HOST_OUT_JAVA_LIBRARIES)
253
254# The default host library path.
255# It always points to the path where we build libraries in the default bitness.
256ifeq ($(HOST_PREFER_32_BIT),true)
257HOST_LIBRARY_PATH := $($(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES)
258else
259HOST_LIBRARY_PATH := $(HOST_OUT_SHARED_LIBRARIES)
260endif
261
262TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj
263TARGET_OUT_HEADERS := $(TARGET_OUT_INTERMEDIATES)/include
264TARGET_OUT_INTERMEDIATE_LIBRARIES := $(TARGET_OUT_INTERMEDIATES)/lib
265TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj
266
267TARGET_OUT_GEN := $(PRODUCT_OUT)/gen
268TARGET_OUT_COMMON_GEN := $(TARGET_COMMON_OUT_ROOT)/gen
269
270TARGET_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM)
271ifeq ($(SANITIZE_TARGET),address)
272target_out_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA)
273else
274target_out_shared_libraries_base := $(TARGET_OUT)
275endif
276
277TARGET_OUT_EXECUTABLES := $(TARGET_OUT)/bin
278TARGET_OUT_OPTIONAL_EXECUTABLES := $(TARGET_OUT)/xbin
279ifeq ($(TARGET_IS_64_BIT),true)
280# /system/lib always contains 32-bit libraries,
281# and /system/lib64 (if present) always contains 64-bit libraries.
282TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib64
283else
284TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib
285endif
286TARGET_OUT_JAVA_LIBRARIES := $(TARGET_OUT)/framework
287TARGET_OUT_APPS := $(TARGET_OUT)/app
288TARGET_OUT_APPS_PRIVILEGED := $(TARGET_OUT)/priv-app
289TARGET_OUT_KEYLAYOUT := $(TARGET_OUT)/usr/keylayout
290TARGET_OUT_KEYCHARS := $(TARGET_OUT)/usr/keychars
291TARGET_OUT_ETC := $(TARGET_OUT)/etc
292TARGET_OUT_NOTICE_FILES := $(TARGET_OUT_INTERMEDIATES)/NOTICE_FILES
293TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages
294
295# Out for TARGET_2ND_ARCH
296TARGET_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX)
297TARGET_2ND_ARCH_MODULE_SUFFIX := $(HOST_2ND_ARCH_MODULE_SUFFIX)
298$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)
299$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES)/lib
300$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib
301$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_EXECUTABLES := $(TARGET_OUT_EXECUTABLES)
302$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS := $(TARGET_OUT_APPS)
303$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS_PRIVILEGED := $(TARGET_OUT_APPS_PRIVILEGED)
304
305TARGET_OUT_DATA := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA)
306TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_EXECUTABLES)
307TARGET_OUT_DATA_SHARED_LIBRARIES := $(TARGET_OUT_SHARED_LIBRARIES)
308TARGET_OUT_DATA_JAVA_LIBRARIES := $(TARGET_OUT_DATA)/framework
309TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA)/app
310TARGET_OUT_DATA_KEYLAYOUT := $(TARGET_OUT_KEYLAYOUT)
311TARGET_OUT_DATA_KEYCHARS := $(TARGET_OUT_KEYCHARS)
312TARGET_OUT_DATA_ETC := $(TARGET_OUT_ETC)
313ifeq ($(TARGET_IS_64_BIT),true)
314TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest64
315else
316TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest
317endif
318TARGET_OUT_DATA_FAKE := $(TARGET_OUT_DATA)/fake_packages
319
320$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_DATA_EXECUTABLES)
321$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_SHARED_LIBRARIES := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES)
322$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA_APPS)
323$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest
324
325TARGET_OUT_CACHE := $(PRODUCT_OUT)/cache
326
327TARGET_OUT_VENDOR := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR)
328ifeq ($(SANITIZE_TARGET),address)
329target_out_vendor_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA)/vendor
330else
331target_out_vendor_shared_libraries_base := $(TARGET_OUT_VENDOR)
332endif
333
334TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR)/bin
335TARGET_OUT_VENDOR_OPTIONAL_EXECUTABLES := $(TARGET_OUT_VENDOR)/xbin
336ifeq ($(TARGET_IS_64_BIT),true)
337TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib64
338else
339TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib
340endif
341TARGET_OUT_VENDOR_JAVA_LIBRARIES := $(TARGET_OUT_VENDOR)/framework
342TARGET_OUT_VENDOR_APPS := $(TARGET_OUT_VENDOR)/app
343TARGET_OUT_VENDOR_ETC := $(TARGET_OUT_VENDOR)/etc
344
345$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR_EXECUTABLES)
346$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(TARGET_OUT_VENDOR)/lib
347$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS := $(TARGET_OUT_VENDOR_APPS)
348
349TARGET_OUT_OEM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_OEM)
350TARGET_OUT_OEM_EXECUTABLES := $(TARGET_OUT_OEM)/bin
351ifeq ($(TARGET_IS_64_BIT),true)
352TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib64
353else
354TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib
355endif
356# We don't expect Java libraries in the oem.img.
357# TARGET_OUT_OEM_JAVA_LIBRARIES:= $(TARGET_OUT_OEM)/framework
358TARGET_OUT_OEM_APPS := $(TARGET_OUT_OEM)/app
359TARGET_OUT_OEM_ETC := $(TARGET_OUT_OEM)/etc
360
361$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_EXECUTABLES := $(TARGET_OUT_OEM_EXECUTABLES)
362$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib
363$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_APPS := $(TARGET_OUT_OEM_APPS)
364
365TARGET_OUT_ODM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ODM)
366TARGET_OUT_ODM_EXECUTABLES := $(TARGET_OUT_ODM)/bin
367ifeq ($(TARGET_IS_64_BIT),true)
368TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib64
369else
370TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib
371endif
372TARGET_OUT_ODM_APPS := $(TARGET_OUT_ODM)/app
373TARGET_OUT_ODM_ETC := $(TARGET_OUT_ODM)/etc
374
375$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_EXECUTABLES := $(TARGET_OUT_ODM_EXECUTABLES)
376$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib
377$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_APPS := $(TARGET_OUT_ODM_APPS)
378
379TARGET_OUT_UNSTRIPPED := $(PRODUCT_OUT)/symbols
380TARGET_OUT_EXECUTABLES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/bin
381TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/lib
382TARGET_OUT_VENDOR_SHARED_LIBRARIES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/$(TARGET_COPY_OUT_VENDOR)/lib
383TARGET_ROOT_OUT_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)
384TARGET_ROOT_OUT_SBIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/sbin
385TARGET_ROOT_OUT_BIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/bin
386
387TARGET_ROOT_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ROOT)
388TARGET_ROOT_OUT_BIN := $(TARGET_ROOT_OUT)/bin
389TARGET_ROOT_OUT_SBIN := $(TARGET_ROOT_OUT)/sbin
390TARGET_ROOT_OUT_ETC := $(TARGET_ROOT_OUT)/etc
391TARGET_ROOT_OUT_USR := $(TARGET_ROOT_OUT)/usr
392
393TARGET_RECOVERY_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_RECOVERY)
394TARGET_RECOVERY_ROOT_OUT := $(TARGET_RECOVERY_OUT)/root
395
396TARGET_SYSLOADER_OUT := $(PRODUCT_OUT)/sysloader
397TARGET_SYSLOADER_ROOT_OUT := $(TARGET_SYSLOADER_OUT)/root
398TARGET_SYSLOADER_SYSTEM_OUT := $(TARGET_SYSLOADER_OUT)/root/system
399
400TARGET_INSTALLER_OUT := $(PRODUCT_OUT)/installer
401TARGET_INSTALLER_DATA_OUT := $(TARGET_INSTALLER_OUT)/data
402TARGET_INSTALLER_ROOT_OUT := $(TARGET_INSTALLER_OUT)/root
403TARGET_INSTALLER_SYSTEM_OUT := $(TARGET_INSTALLER_OUT)/root/system
404
405COMMON_MODULE_CLASSES := TARGET-NOTICE_FILES HOST-NOTICE_FILES HOST-JAVA_LIBRARIES
406
407ifeq (,$(strip $(DIST_DIR)))
408  DIST_DIR := $(OUT_DIR)/dist
409endif
410
411ifeq ($(PRINT_BUILD_CONFIG),)
412PRINT_BUILD_CONFIG := true
413endif
414