Home | History | Annotate | Download | only in combo
      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 
     17 # Configuration for Linux on x86_64 as a target.
     18 # Included by combo/select.mk
     19 
     20 # Provide a default variant.
     21 ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
     22 TARGET_ARCH_VARIANT := x86_64
     23 endif
     24 
     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 #
     29 TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk
     30 ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
     31 $(error Unknown $(TARGET_ARCH) architecture version: $(TARGET_ARCH_VARIANT))
     32 endif
     33 
     34 include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
     35 include $(BUILD_SYSTEM)/combo/fdo.mk
     36 
     37 define $(combo_var_prefix)transform-shared-lib-to-toc
     38 $(call _gen_toc_command_for_elf,$(1),$(2))
     39 endef
     40 
     41 TARGET_LINKER := /system/bin/linker64
     42 
     43 TARGET_GLOBAL_YASM_FLAGS := -f elf64 -m amd64
     44