blob: 9f14aa20d2babdb9b22ffea68fb9d1d3a4fb5b3f [file] [log] [blame]
Raghu Gandham06afc1c2012-07-25 19:57:22 -07001#
2# Copyright (C) 2010 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 MIPS.
18# Included by combo/select.mk
19
20# You can set TARGET_ARCH_VARIANT to use an arch version other
21# than mips32r2-fp. 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
Raghu Gandham06afc1c2012-07-25 19:57:22 -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#
Elliott Hughes369b3322014-02-19 18:47:50 -080032ifeq ($(strip $(TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT)),)
33TARGET_$(combo_2nd_arch_prefix)ARCH_VARIANT := mips32r2-fp
Raghu Gandham06afc1c2012-07-25 19:57:22 -070034endif
35
Dehao Chen7092c792014-07-23 14:28:58 -070036include $(BUILD_SYSTEM)/combo/fdo.mk
Raghu Gandham06afc1c2012-07-25 19:57:22 -070037
Shinichiro Hamaji0e7587a2015-10-09 14:36:04 +090038define $(combo_var_prefix)transform-shared-lib-to-toc
39$(call _gen_toc_command_for_elf,$(1),$(2))
40endef
Raghu Gandham06afc1c2012-07-25 19:57:22 -070041
Dmitriy Ivanovcb2b3d42015-04-29 14:50:05 -070042$(combo_2nd_arch_prefix)TARGET_PACK_MODULE_RELOCATIONS := true
43
Dan Alberte088c0d2014-11-13 10:15:46 -080044$(combo_2nd_arch_prefix)TARGET_LINKER := /system/bin/linker