Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 1 | # |
| 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 MIPS64. |
| 18 | # Included by combo/select.mk |
| 19 | |
| 20 | # You can set TARGET_ARCH_VARIANT to use an arch version other |
Duane Sand | 1a07487 | 2014-11-08 15:25:18 -0800 | [diff] [blame] | 21 | # than mips64r6. Each value should correspond to a file named |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 22 | # $(BUILD_COMBOS)/arch/<name>.mk which must contain |
Elliott Hughes | 4314611 | 2015-08-28 10:31:28 -0700 | [diff] [blame] | 23 | # makefile variable definitions. Their |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 24 | # 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 | # |
| 32 | ifeq ($(strip $(TARGET_ARCH_VARIANT)),) |
Raghu Gandham | 10326b3 | 2014-09-02 16:30:00 -0700 | [diff] [blame] | 33 | TARGET_ARCH_VARIANT := mips64r6 |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 34 | endif |
| 35 | |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 36 | TARGET_ARCH_SPECIFIC_MAKEFILE := $(BUILD_COMBOS)/arch/$(TARGET_ARCH)/$(TARGET_ARCH_VARIANT).mk |
| 37 | ifeq ($(strip $(wildcard $(TARGET_ARCH_SPECIFIC_MAKEFILE))),) |
| 38 | $(error Unknown MIPS architecture variant: $(TARGET_ARCH_VARIANT)) |
| 39 | endif |
| 40 | |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 41 | include $(TARGET_ARCH_SPECIFIC_MAKEFILE) |
Dehao Chen | 7092c79 | 2014-07-23 14:28:58 -0700 | [diff] [blame] | 42 | include $(BUILD_SYSTEM)/combo/fdo.mk |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 43 | |
Shinichiro Hamaji | 0e7587a | 2015-10-09 14:36:04 +0900 | [diff] [blame] | 44 | define $(combo_var_prefix)transform-shared-lib-to-toc |
| 45 | $(call _gen_toc_command_for_elf,$(1),$(2)) |
| 46 | endef |
Chris Dearman | 1efd9e4 | 2014-02-03 15:01:24 -0800 | [diff] [blame] | 47 | |
Dmitriy Ivanov | 8387d99 | 2015-04-29 15:34:21 -0700 | [diff] [blame] | 48 | TARGET_PACK_MODULE_RELOCATIONS := true |
| 49 | |
Dan Albert | e088c0d | 2014-11-13 10:15:46 -0800 | [diff] [blame] | 50 | TARGET_LINKER := /system/bin/linker64 |