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