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.
|
|
|
|
#
|
|
|
|
|
2008-10-21 16:00:00 +02:00
|
|
|
# Configuration for Linux on ARM.
|
2010-02-23 21:36:56 +01:00
|
|
|
# Included by combo/select.mk
|
2008-10-21 16:00:00 +02:00
|
|
|
|
2009-05-29 15:34:02 +02:00
|
|
|
# You can set TARGET_ARCH_VARIANT to use an arch version other
|
|
|
|
# than ARMv5TE. Each value should correspond to a file named
|
|
|
|
# $(BUILD_COMBOS)/arch/<name>.mk which must contain
|
2015-08-28 19:31:28 +02:00
|
|
|
# makefile variable definitions. Their
|
2009-05-29 15:34:02 +02:00
|
|
|
# purpose is to allow module Android.mk files to selectively compile
|
|
|
|
# different versions of code based upon the funtionality and
|
2008-10-30 16:41:09 +01:00
|
|
|
# instructions available in a given architecture version.
|
|
|
|
#
|
2009-05-29 15:34:02 +02:00
|
|
|
# The blocks also define specific arch_variant_cflags, which
|
2008-10-30 16:41:09 +01:00
|
|
|
# include defines, and compiler settings for the given architecture
|
|
|
|
# version.
|
|
|
|
#
|
2017-08-23 12:58:57 +02:00
|
|
|
|
2018-10-10 23:33:13 +02:00
|
|
|
KNOWN_ARMv8_CORES := cortex-a53 cortex-a53.a57 cortex-a55 cortex-a73 cortex-a75 cortex-a76
|
2018-11-22 20:55:32 +01:00
|
|
|
KNOWN_ARMv8_CORES += kryo kryo385 exynos-m1 exynos-m2
|
2017-08-23 12:58:57 +02:00
|
|
|
|
2018-11-22 20:55:32 +01:00
|
|
|
KNOWN_ARMv82a_CORES := cortex-a55 cortex-a75 kryo385
|
2018-11-13 10:31:28 +01:00
|
|
|
|
2019-02-27 18:23:40 +01:00
|
|
|
ifeq (,$(strip $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT)))
|
|
|
|
TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT := generic
|
|
|
|
endif
|
|
|
|
|
|
|
|
# This sanity checks TARGET_2ND_ARCH_VARIANT against the lists above.
|
2018-11-13 10:31:28 +01:00
|
|
|
ifneq (,$(filter $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT), $(KNOWN_ARMv82a_CORES)))
|
2019-02-27 18:23:40 +01:00
|
|
|
ifeq (,$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
|
2018-11-13 10:31:28 +01:00
|
|
|
TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT := armv8-2a
|
2019-02-27 18:23:40 +01:00
|
|
|
else ifneq (armv8-2a,$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
|
|
|
|
$(error Incorrect TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT, $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT). Use armv8-2a instead.)
|
2018-11-13 10:31:28 +01:00
|
|
|
endif
|
|
|
|
else ifneq (,$(filter $(TARGET_$(combo_2nd_arch_prefix)CPU_VARIANT), $(KNOWN_ARMv8_CORES)))
|
2019-02-27 18:23:40 +01:00
|
|
|
ifeq (,$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
|
2017-08-23 12:58:57 +02:00
|
|
|
TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT := armv8-a
|
2019-02-27 18:23:40 +01:00
|
|
|
else ifneq ($(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT),armv8-a)
|
|
|
|
$(error Incorrect TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT, $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT). Use armv8-a instead.)
|
2017-08-23 12:58:57 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-12-27 20:09:36 +01:00
|
|
|
ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT)),)
|
2019-02-27 18:23:40 +01:00
|
|
|
$(error TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT must be set)
|
2008-10-30 16:41:09 +01:00
|
|
|
endif
|
2009-05-29 15:34:02 +02:00
|
|
|
|
2013-12-27 20:09:36 +01:00
|
|
|
TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_$(combo_2nd_arch_prefix)ARCH)/$(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT).mk
|
2009-05-29 15:34:02 +02:00
|
|
|
ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),)
|
2019-02-27 18:23:40 +01:00
|
|
|
$(error Unknown ARM architecture version: $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT))
|
2009-05-28 21:47:23 +02:00
|
|
|
endif
|
2008-10-30 16:41:09 +01:00
|
|
|
|
2009-05-29 15:34:02 +02:00
|
|
|
include $(TARGET_ARCH_SPECIFIC_MAKEFILE)
|
2014-07-23 23:28:58 +02:00
|
|
|
include $(BUILD_SYSTEM)/combo/fdo.mk
|
2009-05-29 15:34:02 +02:00
|
|
|
|
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
|
2008-10-21 16:00:00 +02:00
|
|
|
|
2015-04-21 01:59:05 +02:00
|
|
|
$(combo_2nd_arch_prefix)TARGET_PACK_MODULE_RELOCATIONS := true
|
2015-04-23 06:22:33 +02:00
|
|
|
|
2014-11-13 19:15:46 +01:00
|
|
|
$(combo_2nd_arch_prefix)TARGET_LINKER := /system/bin/linker
|