Jean-Baptiste Queru | 9b4a812 | 2010-02-23 12:36:56 -0800 | [diff] [blame] | 1 | # |
| 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 Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 17 | # Configuration for Linux on x86 as a target. |
Jean-Baptiste Queru | 9b4a812 | 2010-02-23 12:36:56 -0800 | [diff] [blame] | 18 | # Included by combo/select.mk |
| 19 | |
Jean-Baptiste Queru | 9b4a812 | 2010-02-23 12:36:56 -0800 | [diff] [blame] | 20 | # Provide a default variant. |
Qiming Shi | 310324d | 2014-02-17 15:13:48 +0800 | [diff] [blame] | 21 | ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT)),) |
| 22 | TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT := x86 |
Jean-Baptiste Queru | 9b4a812 | 2010-02-23 12:36:56 -0800 | [diff] [blame] | 23 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 24 | |
David 'Digit' Turner | 6371da1 | 2011-12-13 17:21:56 +0100 | [diff] [blame] | 25 | # 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 Shi | 310324d | 2014-02-17 15:13:48 +0800 | [diff] [blame] | 29 | TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_$(combo_2nd_arch_prefix)ARCH)/$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT).mk |
David 'Digit' Turner | 6371da1 | 2011-12-13 17:21:56 +0100 | [diff] [blame] | 30 | ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),) |
Qiming Shi | 310324d | 2014-02-17 15:13:48 +0800 | [diff] [blame] | 31 | $(error Unknown $(TARGET_$(combo_2nd_arch_prefix)ARCH) architecture version: $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT)) |
David 'Digit' Turner | 6371da1 | 2011-12-13 17:21:56 +0100 | [diff] [blame] | 32 | endif |
| 33 | |
| 34 | include $(TARGET_ARCH_SPECIFIC_MAKEFILE) |
David 'Digit' Turner | 6371da1 | 2011-12-13 17:21:56 +0100 | [diff] [blame] | 35 | |
Shinichiro Hamaji | 0e7587a | 2015-10-09 14:36:04 +0900 | [diff] [blame] | 36 | define $(combo_var_prefix)transform-shared-lib-to-toc |
| 37 | $(call _gen_toc_command_for_elf,$(1),$(2)) |
| 38 | endef |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 39 | |
Dmitriy Ivanov | 1d4804c | 2015-04-23 18:43:05 -0700 | [diff] [blame] | 40 | $(combo_2nd_arch_prefix)TARGET_PACK_MODULE_RELOCATIONS := true |
| 41 | |
Dan Albert | e088c0d | 2014-11-13 10:15:46 -0800 | [diff] [blame] | 42 | $(combo_2nd_arch_prefix)TARGET_LINKER := /system/bin/linker |
Ying Wang | fe1e5c3 | 2015-03-09 18:57:40 -0700 | [diff] [blame] | 43 | |
| 44 | $(combo_2nd_arch_prefix)TARGET_GLOBAL_YASM_FLAGS := -f elf32 -m x86 |