Isaac Chen | 510b76d | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 1 | # Copyright (C) 2018 The Android Open Source Project |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | |
Isaac Chen | 510b76d | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 16 | # arm64 emulator specific definitions |
Colin Cross | 4f0eb7d | 2014-01-21 19:35:38 -0800 | [diff] [blame] | 17 | TARGET_ARCH := arm64 |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 18 | TARGET_ARCH_VARIANT := armv8-a |
| 19 | TARGET_CPU_VARIANT := generic |
Colin Cross | 4f0eb7d | 2014-01-21 19:35:38 -0800 | [diff] [blame] | 20 | TARGET_CPU_ABI := arm64-v8a |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 21 | |
Colin Cross | 930b5fb | 2014-01-28 14:35:16 -0800 | [diff] [blame] | 22 | TARGET_2ND_ARCH := arm |
Narayan Kamath | 24b7840 | 2014-08-19 13:03:01 +0100 | [diff] [blame] | 23 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 24 | TARGET_2ND_CPU_ABI2 := armeabi |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 25 | |
Dan Shi | 82c4cb7 | 2020-10-05 10:17:21 -0700 | [diff] [blame] | 26 | ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk,$(MAKECMDGOALS)),) |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 27 | # DO NOT USE |
| 28 | # DO NOT USE |
| 29 | # |
| 30 | # This architecture / CPU variant must NOT be used for any 64 bit |
| 31 | # platform builds. It is the lowest common denominator required |
Ying Wang | b6f60d5 | 2014-10-21 21:20:41 -0700 | [diff] [blame] | 32 | # to build an unbundled application or cts for all supported 32 and 64 bit |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 33 | # platforms. |
| 34 | # |
| 35 | # If you're building a 64 bit platform (and not an application) the |
Isaac Chen | f5af850 | 2017-08-23 10:58:57 +0000 | [diff] [blame] | 36 | # ARM-v8 specification allows you to assume all the features available in an |
| 37 | # armv7-a-neon CPU. You should set the following as 2nd arch/cpu variant: |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 38 | # |
Isaac Chen | f5af850 | 2017-08-23 10:58:57 +0000 | [diff] [blame] | 39 | # TARGET_2ND_ARCH_VARIANT := armv8-a |
| 40 | # TARGET_2ND_CPU_VARIANT := generic |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 41 | # |
| 42 | # DO NOT USE |
| 43 | # DO NOT USE |
Elliott Hughes | 53a5581 | 2019-01-10 08:53:38 -0800 | [diff] [blame] | 44 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 45 | # DO NOT USE |
| 46 | # DO NOT USE |
Narayan Kamath | 3930fbd | 2014-08-08 18:26:44 +0100 | [diff] [blame] | 47 | TARGET_2ND_CPU_VARIANT := generic |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 48 | # DO NOT USE |
| 49 | # DO NOT USE |
| 50 | else |
Isaac Chen | f5af850 | 2017-08-23 10:58:57 +0000 | [diff] [blame] | 51 | TARGET_2ND_ARCH_VARIANT := armv8-a |
| 52 | TARGET_2ND_CPU_VARIANT := generic |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 53 | endif |
Colin Cross | 930b5fb | 2014-01-28 14:35:16 -0800 | [diff] [blame] | 54 | |
SzuWei Lin | 9512794 | 2022-07-01 18:51:34 +0800 | [diff] [blame] | 55 | # Include 64-bit mediaserver to support 64-bit only devices |
| 56 | TARGET_DYNAMIC_64_32_MEDIASERVER := true |
SzuWei Lin | 0ad8108 | 2023-05-15 15:38:58 +0800 | [diff] [blame] | 57 | # Include 64-bit drmserver to support 64-bit only devices |
| 58 | TARGET_DYNAMIC_64_32_DRMSERVER := true |
SzuWei Lin | 9512794 | 2022-07-01 18:51:34 +0800 | [diff] [blame] | 59 | |
Isaac Chen | 510b76d | 2018-06-11 12:52:22 +0800 | [diff] [blame] | 60 | include build/make/target/board/BoardConfigGsiCommon.mk |
Yifan Hong | c10e367 | 2020-10-12 11:56:54 -0700 | [diff] [blame] | 61 | |
Steve Muckle | 0959fbf | 2020-04-13 17:07:13 -0700 | [diff] [blame] | 62 | # Some vendors still haven't cleaned up all device specific directories under |
| 63 | # root! |
Isaac Chen | f715470 | 2018-04-19 14:18:54 +0800 | [diff] [blame] | 64 | |
Isaac Chen | 50978e8 | 2018-07-13 18:52:42 +0800 | [diff] [blame] | 65 | # TODO(b/111434759, b/111287060) SoC specific hacks |
SzuWei Lin | 11892a4 | 2018-10-19 16:40:33 +0800 | [diff] [blame] | 66 | BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp |
Isaac Chen | 50978e8 | 2018-07-13 18:52:42 +0800 | [diff] [blame] | 67 | BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist |
| 68 | BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware |
Isaac Chen | f715470 | 2018-04-19 14:18:54 +0800 | [diff] [blame] | 69 | |
| 70 | # TODO(b/36764215): remove this setting when the generic system image |
| 71 | # no longer has QCOM-specific directories under /. |
SzuWei Lin | 1b4eaef | 2019-06-25 18:09:23 +0800 | [diff] [blame] | 72 | BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy |