blob: acbae519fe5f01c5ec30f17df6c6088ef164bd65 [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.
Qiming Shi310324d2014-02-17 15:13:48 +080021ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT)),)
22TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT := x86
Jean-Baptiste Queru9b4a8122010-02-23 12:36:56 -080023endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080024
David 'Digit' Turner6371da12011-12-13 17:21:56 +010025# Include the arch-variant-specific configuration file.
26# Its role is to define various ARCH_X86_HAVE_XXX feature macros,
27# plus initial values for TARGET_GLOBAL_CFLAGS
28#
Qiming Shi310324d2014-02-17 15:13:48 +080029TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_$(combo_2nd_arch_prefix)ARCH)/$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT).mk
David 'Digit' Turner6371da12011-12-13 17:21:56 +010030ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
Qiming Shi310324d2014-02-17 15:13:48 +080031$(error Unknown $(TARGET_$(combo_2nd_arch_prefix)ARCH) architecture version: $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
David 'Digit' Turner6371da12011-12-13 17:21:56 +010032endif
33
34include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
David 'Digit' Turner6371da12011-12-13 17:21:56 +010035
Shinichiro Hamaji0e7587a2015-10-09 14:36:04 +090036define $(combo_var_prefix)transform-shared-lib-to-toc
37$(call _gen_toc_command_for_elf,$(1),$(2))
38endef
The Android Open Source Project88b60792009-03-03 19:28:42 -080039
Dmitriy Ivanov1d4804c2015-04-23 18:43:05 -070040$(combo_2nd_arch_prefix)TARGET_PACK_MODULE_RELOCATIONS := true
41
Dan Alberte088c0d2014-11-13 10:15:46 -080042$(combo_2nd_arch_prefix)TARGET_LINKER := /system/bin/linker
Ying Wangfe1e5c32015-03-09 18:57:40 -070043
44$(combo_2nd_arch_prefix)TARGET_GLOBAL_YASM_FLAGS := -f elf32 -m x86