blob: e2d5fb4df83c371efbd9aae8c8b5b0b2a7d6d0fd [file] [log] [blame]
Isaac Chen510b76d2018-06-11 12:52:22 +08001# Copyright (C) 2018 The Android Open Source Project
Ben Chengdb4fc202013-10-04 16:02:59 -07002#
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 Chen510b76d2018-06-11 12:52:22 +080016# arm64 emulator specific definitions
Colin Cross4f0eb7d2014-01-21 19:35:38 -080017TARGET_ARCH := arm64
Ben Chengdb4fc202013-10-04 16:02:59 -070018TARGET_ARCH_VARIANT := armv8-a
19TARGET_CPU_VARIANT := generic
Colin Cross4f0eb7d2014-01-21 19:35:38 -080020TARGET_CPU_ABI := arm64-v8a
Ben Chengdb4fc202013-10-04 16:02:59 -070021
Colin Cross930b5fb2014-01-28 14:35:16 -080022TARGET_2ND_ARCH := arm
Narayan Kamath24b78402014-08-19 13:03:01 +010023TARGET_2ND_CPU_ABI := armeabi-v7a
24TARGET_2ND_CPU_ABI2 := armeabi
Narayan Kamath8dc227f2014-08-18 19:20:07 +010025
Dan Shi82c4cb72020-10-05 10:17:21 -070026ifneq ($(TARGET_BUILD_APPS)$(filter cts sdk,$(MAKECMDGOALS)),)
Narayan Kamath8dc227f2014-08-18 19:20:07 +010027# 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 Wangb6f60d52014-10-21 21:20:41 -070032# to build an unbundled application or cts for all supported 32 and 64 bit
Narayan Kamath8dc227f2014-08-18 19:20:07 +010033# platforms.
34#
35# If you're building a 64 bit platform (and not an application) the
Isaac Chenf5af8502017-08-23 10:58:57 +000036# 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 Kamath8dc227f2014-08-18 19:20:07 +010038#
Isaac Chenf5af8502017-08-23 10:58:57 +000039# TARGET_2ND_ARCH_VARIANT := armv8-a
40# TARGET_2ND_CPU_VARIANT := generic
Narayan Kamath8dc227f2014-08-18 19:20:07 +010041#
42# DO NOT USE
43# DO NOT USE
Elliott Hughes53a55812019-01-10 08:53:38 -080044TARGET_2ND_ARCH_VARIANT := armv7-a-neon
Narayan Kamath8dc227f2014-08-18 19:20:07 +010045# DO NOT USE
46# DO NOT USE
Narayan Kamath3930fbd2014-08-08 18:26:44 +010047TARGET_2ND_CPU_VARIANT := generic
Narayan Kamath8dc227f2014-08-18 19:20:07 +010048# DO NOT USE
49# DO NOT USE
50else
Isaac Chenf5af8502017-08-23 10:58:57 +000051TARGET_2ND_ARCH_VARIANT := armv8-a
52TARGET_2ND_CPU_VARIANT := generic
Narayan Kamath8dc227f2014-08-18 19:20:07 +010053endif
Colin Cross930b5fb2014-01-28 14:35:16 -080054
SzuWei Lin95127942022-07-01 18:51:34 +080055# Include 64-bit mediaserver to support 64-bit only devices
56TARGET_DYNAMIC_64_32_MEDIASERVER := true
SzuWei Lin0ad81082023-05-15 15:38:58 +080057# Include 64-bit drmserver to support 64-bit only devices
58TARGET_DYNAMIC_64_32_DRMSERVER := true
SzuWei Lin95127942022-07-01 18:51:34 +080059
Isaac Chen510b76d2018-06-11 12:52:22 +080060include build/make/target/board/BoardConfigGsiCommon.mk
Yifan Hongc10e3672020-10-12 11:56:54 -070061
Steve Muckle0959fbf2020-04-13 17:07:13 -070062# Some vendors still haven't cleaned up all device specific directories under
63# root!
Isaac Chenf7154702018-04-19 14:18:54 +080064
Isaac Chen50978e82018-07-13 18:52:42 +080065# TODO(b/111434759, b/111287060) SoC specific hacks
SzuWei Lin11892a42018-10-19 16:40:33 +080066BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
Isaac Chen50978e82018-07-13 18:52:42 +080067BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
68BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
Isaac Chenf7154702018-04-19 14:18:54 +080069
70# TODO(b/36764215): remove this setting when the generic system image
71# no longer has QCOM-specific directories under /.
SzuWei Lin1b4eaef2019-06-25 18:09:23 +080072BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy