blob: a3f59a774c0edf35006eccaea5e22a8b5bd663f9 [file] [log] [blame]
Ben Chengdb4fc202013-10-04 16:02:59 -07001#
2# Copyright (C) 2013 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 ARM.
18# Included by combo/select.mk
19
20# You can set TARGET_ARCH_VARIANT to use an arch version other
21# than ARMv5TE. Each value should correspond to a file named
22# $(BUILD_COMBOS)/arch/<name>.mk which must contain
Elliott Hughes43146112015-08-28 10:31:28 -070023# makefile variable definitions. Their
Ben Chengdb4fc202013-10-04 16:02:59 -070024# purpose is to allow module Android.mk files to selectively compile
25# different versions of code based upon the funtionality and
26# instructions available in a given architecture version.
27#
28# The blocks also define specific arch_variant_cflags, which
29# include defines, and compiler settings for the given architecture
30# version.
31#
32ifeq ($(strip $(TARGET_ARCH_VARIANT)),)
33TARGET_ARCH_VARIANT := armv8
34endif
35
Ben Chengdb4fc202013-10-04 16:02:59 -070036TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk
37ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
38$(error Unknown ARM architecture version: $(TARGET_ARCH_VARIANT))
39endif
40
41include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
Dehao Chen25671e12014-07-23 14:28:58 -070042include $(BUILD_SYSTEM)/combo/fdo.mk
Ben Chengdb4fc202013-10-04 16:02:59 -070043
Shinichiro Hamaji0e7587a2015-10-09 14:36:04 +090044define $(combo_var_prefix)transform-shared-lib-to-toc
45$(call _gen_toc_command_for_elf,$(1),$(2))
46endef
Ben Chengdb4fc202013-10-04 16:02:59 -070047
Dmitriy Ivanov4c2d1a62015-04-20 16:59:05 -070048TARGET_PACK_MODULE_RELOCATIONS := true
Dimitry Ivanov1eca10f2015-04-23 04:22:33 +000049
Dan Alberte088c0d2014-11-13 10:15:46 -080050TARGET_LINKER := /system/bin/linker64