blob: 7506787697615ab52c46a13d34b5e5a740ee7c0e [file] [log] [blame]
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -08001#
2# Copyright (C) 2006 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
The Android Open Source Project88b60792009-03-03 19:28:42 -080017# Configuration for Linux on x86 as a target.
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080018# Included by combo/select.mk
19
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080020# Provide a default variant.
21ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
22TARGET_ARCH_VARIANT := x86
23endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080024
Ben Cheng914f7fd2012-12-12 16:22:54 -080025ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
Andrew Hsieh098a5962012-12-21 09:23:05 +080026TARGET_GCC_VERSION := 4.7
Ben Cheng914f7fd2012-12-12 16:22:54 -080027else
28TARGET_GCC_VERSION := $(TARGET_GCC_VERSION_EXP)
Ben Cheng054ffd22012-12-11 14:01:10 -080029endif
30
David 'Digit' Turner6371da12011-12-13 17:21:56 +010031# Include the arch-variant-specific configuration file.
32# Its role is to define various ARCH_X86_HAVE_XXX feature macros,
33# plus initial values for TARGET_GLOBAL_CFLAGS
34#
35TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk
36ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
37$(error Unknown $(TARGET_ARCH) architecture version: $(TARGET_ARCH_VARIANT))
38endif
39
40include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
41
42
The Android Open Source Project88b60792009-03-03 19:28:42 -080043# You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080044ifeq ($(strip $(TARGET_TOOLS_PREFIX)),)
Pavel Chupinc1a56642013-08-23 16:49:21 +040045TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/x86/x86_64-linux-android-$(TARGET_GCC_VERSION)
46TARGET_TOOLS_PREFIX := $(TARGET_TOOLCHAIN_ROOT)/bin/x86_64-linux-android-
The Android Open Source Project88b60792009-03-03 19:28:42 -080047endif
48
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080049TARGET_CC := $(TARGET_TOOLS_PREFIX)gcc$(HOST_EXECUTABLE_SUFFIX)
50TARGET_CXX := $(TARGET_TOOLS_PREFIX)g++$(HOST_EXECUTABLE_SUFFIX)
51TARGET_AR := $(TARGET_TOOLS_PREFIX)ar$(HOST_EXECUTABLE_SUFFIX)
52TARGET_OBJCOPY := $(TARGET_TOOLS_PREFIX)objcopy$(HOST_EXECUTABLE_SUFFIX)
53TARGET_LD := $(TARGET_TOOLS_PREFIX)ld$(HOST_EXECUTABLE_SUFFIX)
Bruce Beare45ac4342010-06-24 14:02:00 -070054TARGET_STRIP := $(TARGET_TOOLS_PREFIX)strip$(HOST_EXECUTABLE_SUFFIX)
Evgeniy Stepanov8f77c9d2011-06-21 17:08:49 +040055
56ifeq ($(TARGET_BUILD_VARIANT),user)
Bruce Beare45ac4342010-06-24 14:02:00 -070057TARGET_STRIP_COMMAND = $(TARGET_STRIP) --strip-debug $< -o $@
Evgeniy Stepanov8f77c9d2011-06-21 17:08:49 +040058else
59TARGET_STRIP_COMMAND = $(TARGET_STRIP) --strip-debug $< -o $@ && \
60 $(TARGET_OBJCOPY) --add-gnu-debuglink=$< $@
61endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080062
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080063ifneq ($(wildcard $(TARGET_CC)),)
64TARGET_LIBGCC := \
Bruce Bearea17b91f2011-01-26 18:43:15 -080065 $(shell $(TARGET_CC) -m32 -print-file-name=libgcc.a)
synergydev6ecf0ef2013-08-08 13:08:26 -070066target_libgcov := $(shell $(TARGET_CC) $(TARGET_GLOBAL_CFLAGS) \
67 -print-file-name=libgcov.a)
The Android Open Source Project88b60792009-03-03 19:28:42 -080068endif
69
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080070TARGET_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
The Android Open Source Project88b60792009-03-03 19:28:42 -080071
72libc_root := bionic/libc
73libm_root := bionic/libm
74libstdc++_root := bionic/libstdc++
75libthread_db_root := bionic/libthread_db
76
synergydev6ecf0ef2013-08-08 13:08:26 -070077# Define FDO (Feedback Directed Optimization) options.
78
79TARGET_FDO_CFLAGS:=
80TARGET_FDO_LIB:=
81
82ifneq ($(strip $(BUILD_FDO_INSTRUMENT)),)
83 # Set BUILD_FDO_INSTRUMENT=true to turn on FDO instrumentation.
84 # The profile will be generated on /data/local/tmp/profile on the device.
85 TARGET_FDO_CFLAGS := -fprofile-generate=/data/local/tmp/profile -DANDROID_FDO
86 TARGET_FDO_LIB := $(target_libgcov)
87else
88 # If BUILD_FDO_INSTRUMENT is turned off, then consider doing the FDO optimizations.
89 # Set TARGET_FDO_PROFILE_PATH to set a custom profile directory for your build.
90 ifeq ($(strip $(TARGET_FDO_PROFILE_PATH)),)
91 TARGET_FDO_PROFILE_PATH := fdo/profiles/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT)
92 else
93 ifeq ($(strip $(wildcard $(TARGET_FDO_PROFILE_PATH))),)
94 $(warning Custom TARGET_FDO_PROFILE_PATH supplied, but directory does not exist. Turn off FDO.)
95 endif
96 endif
97
98 # If the FDO profile directory can't be found, then FDO is off.
99 ifneq ($(strip $(wildcard $(TARGET_FDO_PROFILE_PATH))),)
100 TARGET_FDO_CFLAGS := -fprofile-use=$(TARGET_FDO_PROFILE_PATH) -DANDROID_FDO
101 TARGET_FDO_LIB := $(target_libgcov)
102 endif
103endif
104
The Android Open Source Project88b60792009-03-03 19:28:42 -0800105# unless CUSTOM_KERNEL_HEADERS is defined, we're going to use
106# symlinks located in out/ to point to the appropriate kernel
107# headers. see 'config/kernel_headers.make' for more details
108#
109ifneq ($(CUSTOM_KERNEL_HEADERS),)
110 KERNEL_HEADERS_COMMON := $(CUSTOM_KERNEL_HEADERS)
111 KERNEL_HEADERS_ARCH := $(CUSTOM_KERNEL_HEADERS)
112else
113 KERNEL_HEADERS_COMMON := $(libc_root)/kernel/common
114 KERNEL_HEADERS_ARCH := $(libc_root)/kernel/arch-$(TARGET_ARCH)
115endif
116KERNEL_HEADERS := $(KERNEL_HEADERS_COMMON) $(KERNEL_HEADERS_ARCH)
117
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -0800118TARGET_GLOBAL_CFLAGS += \
Mark D Horn5812d7b2011-04-26 14:15:26 -0700119 -O2 \
Bruce Beareccec9c42010-10-14 14:12:46 -0700120 -Ulinux \
Mark D Horn5812d7b2011-04-26 14:15:26 -0700121 -Wa,--noexecstack \
122 -Werror=format-security \
Nick Kralevichfb45baa2013-04-29 12:41:53 -0700123 -D_FORTIFY_SOURCE=2 \
Mark D Horn5812d7b2011-04-26 14:15:26 -0700124 -Wstrict-aliasing=2 \
Nick Kralevichd9d2e7a2011-11-04 13:07:26 -0700125 -fPIC -fPIE \
Mark D Horn5812d7b2011-04-26 14:15:26 -0700126 -ffunction-sections \
127 -finline-functions \
128 -finline-limit=300 \
129 -fno-inline-functions-called-once \
130 -fno-short-enums \
131 -fstrict-aliasing \
132 -funswitch-loops \
133 -funwind-tables \
Andrew Hsieh56305212012-09-12 15:27:59 -0700134 -fstack-protector
Ying Wangda4bf422012-08-16 16:45:01 -0700135
136android_config_h := $(call select-android-config-h,target_linux-x86)
137TARGET_ANDROID_CONFIG_CFLAGS := -include $(android_config_h) -I $(dir $(android_config_h))
138TARGET_GLOBAL_CFLAGS += $(TARGET_ANDROID_CONFIG_CFLAGS)
The Android Open Source Project88b60792009-03-03 19:28:42 -0800139
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100140# XXX: Not sure this is still needed. Must check with our toolchains.
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -0800141TARGET_GLOBAL_CPPFLAGS += \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800142 -fno-use-cxa-atexit
143
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100144# XXX: Our toolchain is normally configured to always set these flags by default
145# however, there have been reports that this is sometimes not the case. So make
146# them explicit here unless we have the time to carefully check it
147#
Jean-Baptiste Queru6e207822012-06-13 07:42:04 -0700148TARGET_GLOBAL_CFLAGS += -mstackrealign -msse3 -mfpmath=sse -m32
Bruce Beare3343b272011-12-09 13:27:08 -0800149
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100150# XXX: These flags should not be defined here anymore. Instead, the Android.mk
151# of the modules that depend on these features should instead check the
152# corresponding macros (e.g. ARCH_X86_HAVE_SSE2 and ARCH_X86_HAVE_SSSE3)
153# Keep them here until this is all cleared up.
154#
155ifeq ($(ARCH_X86_HAVE_SSE2),true)
156TARGET_GLOBAL_CFLAGS += -DUSE_SSE2
Bruce Beareccec9c42010-10-14 14:12:46 -0700157endif
158
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100159ifeq ($(ARCH_X86_HAVE_SSSE3),true) # yes, really SSSE3, not SSE3!
160TARGET_GLOBAL_CFLAGS += -DUSE_SSSE3
161endif
162
163# XXX: This flag is probably redundant. I believe our toolchain always sets
164# it by default. Consider for removal.
165#
Bruce Beare2e8283d2011-02-01 08:00:09 -0800166TARGET_GLOBAL_CFLAGS += -mbionic
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100167
168# XXX: This flag is probably redundant. The macro should be defined by our
169# toolchain binaries automatically (as a compiler built-in).
170# Check with: $BINPREFIX-gcc -dM -E < /dev/null
171#
172# Consider for removal.
173#
Bruce Beareccec9c42010-10-14 14:12:46 -0700174TARGET_GLOBAL_CFLAGS += -D__ANDROID__
Bruce Beareccec9c42010-10-14 14:12:46 -0700175
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100176# XXX: This flag is probably redundant since our toolchain binaries already
177# generate 32-bit machine code. It probably dates back to the old days
178# where we were using the host toolchain on Linux to build the platform
179# images. Consider it for removal.
Mark D Horn5812d7b2011-04-26 14:15:26 -0700180TARGET_GLOBAL_LDFLAGS += -m32
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100181
Mark D Horn5812d7b2011-04-26 14:15:26 -0700182TARGET_GLOBAL_LDFLAGS += -Wl,-z,noexecstack
Nick Kralevichecb1a562012-05-09 14:49:04 -0700183TARGET_GLOBAL_LDFLAGS += -Wl,-z,relro -Wl,-z,now
Nick Kralevich4f2f16d2012-10-19 13:36:49 -0700184TARGET_GLOBAL_LDFLAGS += -Wl,--warn-shared-textrel
Mark D Horn5812d7b2011-04-26 14:15:26 -0700185TARGET_GLOBAL_LDFLAGS += -Wl,--gc-sections
Bruce Beareccec9c42010-10-14 14:12:46 -0700186
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -0800187TARGET_C_INCLUDES := \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800188 $(libc_root)/arch-x86/include \
189 $(libc_root)/include \
190 $(libstdc++_root)/include \
191 $(KERNEL_HEADERS) \
192 $(libm_root)/include \
193 $(libm_root)/include/i387 \
194 $(libthread_db_root)/include
195
Ying Wangb1a4e4e2012-05-15 15:31:41 -0700196TARGET_CRTBEGIN_STATIC_O := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_static.o
197TARGET_CRTBEGIN_DYNAMIC_O := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic.o
198TARGET_CRTEND_O := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtend_android.o
The Android Open Source Project88b60792009-03-03 19:28:42 -0800199
Ying Wangb1a4e4e2012-05-15 15:31:41 -0700200TARGET_CRTBEGIN_SO_O := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_so.o
201TARGET_CRTEND_SO_O := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtend_so.o
The Android Open Source Project88b60792009-03-03 19:28:42 -0800202
Bruce Beare45ac4342010-06-24 14:02:00 -0700203TARGET_STRIP_MODULE:=true
The Android Open Source Project88b60792009-03-03 19:28:42 -0800204
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -0800205TARGET_DEFAULT_SYSTEM_SHARED_LIBRARIES := libc libstdc++ libm
The Android Open Source Project88b60792009-03-03 19:28:42 -0800206
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -0800207TARGET_CUSTOM_LD_COMMAND := true
The Android Open Source Project88b60792009-03-03 19:28:42 -0800208define transform-o-to-shared-lib-inner
Ying Wang3a7e4cc2011-01-28 14:14:47 -0800209$(hide) $(PRIVATE_CXX) \
Ying Wang1a081002010-07-13 14:55:47 -0700210 $(PRIVATE_TARGET_GLOBAL_LDFLAGS) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800211 -nostdlib -Wl,-soname,$(notdir $@) \
212 -shared -Bsymbolic \
Bruce Beareccec9c42010-10-14 14:12:46 -0700213 $(TARGET_GLOBAL_CFLAGS) \
Ying Wang1a081002010-07-13 14:55:47 -0700214 $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
Jeff Brown703e7c62011-02-04 20:15:00 -0800215 $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800216 $(PRIVATE_ALL_OBJECTS) \
217 -Wl,--whole-archive \
Ying Wang80e6cce2011-01-24 23:25:36 -0800218 $(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800219 -Wl,--no-whole-archive \
Ying Wangfcdabd42011-04-25 14:22:41 -0700220 $(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--start-group) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800221 $(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
Ying Wangfcdabd42011-04-25 14:22:41 -0700222 $(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--end-group) \
Andrew Hsieh8725b942013-03-07 20:52:17 +0800223 $(PRIVATE_TARGET_LIBGCC) \
synergydev6ecf0ef2013-08-08 13:08:26 -0700224 $(PRIVATE_TARGET_FDO_LIB) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800225 $(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
226 -o $@ \
227 $(PRIVATE_LDFLAGS) \
Ying Wang1a081002010-07-13 14:55:47 -0700228 $(PRIVATE_TARGET_LIBGCC) \
Jeff Brown703e7c62011-02-04 20:15:00 -0800229 $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTEND_SO_O))
The Android Open Source Project88b60792009-03-03 19:28:42 -0800230endef
231
The Android Open Source Project88b60792009-03-03 19:28:42 -0800232define transform-o-to-executable-inner
Ying Wang3a7e4cc2011-01-28 14:14:47 -0800233$(hide) $(PRIVATE_CXX) \
Ying Wang91fd1232012-09-25 17:52:10 -0700234 $(PRIVATE_TARGET_GLOBAL_LDFLAGS) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800235 -nostdlib -Bdynamic \
236 -Wl,-dynamic-linker,/system/bin/linker \
237 -Wl,-z,nocopyreloc \
Nick Kralevichd9d2e7a2011-11-04 13:07:26 -0700238 -fPIE -pie \
Ying Wang91fd1232012-09-25 17:52:10 -0700239 $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800240 -Wl,-rpath-link=$(TARGET_OUT_INTERMEDIATE_LIBRARIES) \
Ying Wang91fd1232012-09-25 17:52:10 -0700241 $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_DYNAMIC_O)) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800242 $(PRIVATE_ALL_OBJECTS) \
Kito Cheng61c37e72012-01-20 19:21:46 +0800243 -Wl,--whole-archive \
244 $(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
245 -Wl,--no-whole-archive \
Ying Wangfcdabd42011-04-25 14:22:41 -0700246 $(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--start-group) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800247 $(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
Ying Wangfcdabd42011-04-25 14:22:41 -0700248 $(if $(PRIVATE_GROUP_STATIC_LIBRARIES),-Wl$(comma)--end-group) \
Andrew Hsieh8725b942013-03-07 20:52:17 +0800249 $(PRIVATE_TARGET_LIBGCC) \
synergydev6ecf0ef2013-08-08 13:08:26 -0700250 $(PRIVATE_TARGET_FDO_LIB) \
Andrew Hsieh8725b942013-03-07 20:52:17 +0800251 $(call normalize-target-libraries,$(PRIVATE_ALL_SHARED_LIBRARIES)) \
252 -o $@ \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800253 $(PRIVATE_LDFLAGS) \
Ying Wang91fd1232012-09-25 17:52:10 -0700254 $(PRIVATE_TARGET_LIBGCC) \
255 $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTEND_O))
The Android Open Source Project88b60792009-03-03 19:28:42 -0800256endef
257
258define transform-o-to-static-executable-inner
Ying Wang3a7e4cc2011-01-28 14:14:47 -0800259$(hide) $(PRIVATE_CXX) \
Ying Wang91fd1232012-09-25 17:52:10 -0700260 $(PRIVATE_TARGET_GLOBAL_LDFLAGS) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800261 -nostdlib -Bstatic \
262 -o $@ \
Ying Wang91fd1232012-09-25 17:52:10 -0700263 $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
264 $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_STATIC_O)) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800265 $(PRIVATE_LDFLAGS) \
266 $(PRIVATE_ALL_OBJECTS) \
Kito Cheng61c37e72012-01-20 19:21:46 +0800267 -Wl,--whole-archive \
268 $(call normalize-target-libraries,$(PRIVATE_ALL_WHOLE_STATIC_LIBRARIES)) \
269 -Wl,--no-whole-archive \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800270 -Wl,--start-group \
271 $(call normalize-target-libraries,$(PRIVATE_ALL_STATIC_LIBRARIES)) \
synergydev6ecf0ef2013-08-08 13:08:26 -0700272 $(PRIVATE_TARGET_FDO_LIB) \
Ying Wang91fd1232012-09-25 17:52:10 -0700273 $(PRIVATE_TARGET_LIBGCC) \
The Android Open Source Project88b60792009-03-03 19:28:42 -0800274 -Wl,--end-group \
Ying Wang91fd1232012-09-25 17:52:10 -0700275 $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTEND_O))
The Android Open Source Project88b60792009-03-03 19:28:42 -0800276endef
David 'Digit' Turner6371da12011-12-13 17:21:56 +0100277
278# Special check for x86 NDK ABI compatibility.
279# The TARGET_CPU_ABI variable should be defined in BoardConfig.mk to 'x86'
280# *only* if the platform image is compatible with the NDK x86 ABI.
281#
282# We perform a small check here to ensure that nothing bad can happen.
283#
284ifeq ($(TARGET_CPU_ABI),x86)
285 ifneq (true-true-true-true,$(ARCH_X86_HAVE_MMX)-$(ARCH_X86_HAVE_SSE)-$(ARCH_X86_HAVE_SSE2)-$(ARCH_X86_HAVE_SSE3))
286 $(info ERROR: Your x86 platform image is not compatible with the NDK x86 ABI)
287 $(info As such, you should *not* define TARGET_CPU_ABI to 'x86' in your BoardConfig.mk)
288 $(info to ensure that your device will not be mistakenly listed as compatible by
289 $(info the Android Market. Also, it is likely that the image will fail the CTS tests)
290 $(info Please undefine TARGET_CPU_ABI in your BoardConfig.mk, or select the value 'none')
291 $(info The corresponding image will still be able to run Dalvik-based Android applications)
292 $(error Aborting build! Please fix your BoardConfig.mk)
293 endif
294endif