2010-02-23 21:36:56 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
# Configuration for Linux on x86 as a target.
|
2010-02-23 21:36:56 +01:00
|
|
|
# Included by combo/select.mk
|
|
|
|
|
|
|
|
# Provide a default variant.
|
2014-02-17 08:13:48 +01:00
|
|
|
ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT)),)
|
|
|
|
TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT := x86
|
2010-02-23 21:36:56 +01:00
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2011-12-13 17:21:56 +01:00
|
|
|
# Include the arch-variant-specific configuration file.
|
|
|
|
# Its role is to define various ARCH_X86_HAVE_XXX feature macros,
|
|
|
|
# plus initial values for TARGET_GLOBAL_CFLAGS
|
|
|
|
#
|
2014-02-17 08:13:48 +01:00
|
|
|
TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_$(combo_2nd_arch_prefix)ARCH)/$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT).mk
|
2011-12-13 17:21:56 +01:00
|
|
|
ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
|
2014-02-17 08:13:48 +01:00
|
|
|
$(error Unknown $(TARGET_$(combo_2nd_arch_prefix)ARCH) architecture version: $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
|
2011-12-13 17:21:56 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
|
|
|
|
|
2015-10-09 07:36:04 +02:00
|
|
|
define $(combo_var_prefix)transform-shared-lib-to-toc
|
|
|
|
$(call _gen_toc_command_for_elf,$(1),$(2))
|
|
|
|
endef
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2015-04-24 03:43:05 +02:00
|
|
|
$(combo_2nd_arch_prefix)TARGET_PACK_MODULE_RELOCATIONS := true
|
|
|
|
|
2014-11-13 19:15:46 +01:00
|
|
|
$(combo_2nd_arch_prefix)TARGET_LINKER := /system/bin/linker
|
2015-03-10 02:57:40 +01:00
|
|
|
|
|
|
|
$(combo_2nd_arch_prefix)TARGET_GLOBAL_YASM_FLAGS := -f elf32 -m x86
|